Help with linking a button?

Ok, so I'm making a small little choose your own adventure
type game in flash, just using buttons to navigate between the
screens, fairly simple. I have the first frame with two buttons,
one links to start, the other links to info. the second button
works fine. when i launch the start button, it takes me to a movie
clip on the third frame. this clip plays till it gets to frame 75,
where i have actionscript follows.
getout.addEventListener(MouseEvent.CLICK, getoutclick);
function getoutclick(e:Event):void {
gotoAndPlay("home");
getout is a labeled instance of a button in the library,
which I want to take me to the next frame, but for the moment I
just want it to replay so I know that it works, which is why it's
linked to "home" now.
Every time frame 75 loads, i get the following error.
TypeError: Error #1006: addEventListener is not a function.
at Symbol1/::frame75()
I used the same method to link buttons on the first frame,
and now it isn't working on this one. Any ideas?

check Symbol1 for a stray line of code.

Similar Messages

  • Anyone help with linking a bank account to your apple id. The form wants a phone number I only have a UK mobile number and it doesnt sem to want to accept it keeps l;ooping me back to entering a phone number.

    Anyone help with linking a bank account to your apple id. The form wants a phone number I only have a UK mobile number and it doesnt sem to want to accept it keeps l;ooping me back to entering a phone number.

    If you are trying to setup a charge card number on the Apple Store - make sure you are in the Correct country site - icon bottom right last time I saw it - where you can change country.  

  • Need help with Flash CS4 buttons/can't get buttons to control anything

    Hello,
    I need help with Flash CS4. I am making a banner with an animation (Image change into movie clip "3D Spiral") and added buttons but I cannot get the buttons to control the animation. Please help I am frustrated! If someone could help I would be most appreciated.

    Thank you.
    Regards,
    Michael J. Sheehan  allelois
    Date: Mon, 17 Aug 2009 18:48:09 -0600
    From: [email protected]
    To: [email protected]
    Subject: Need help with Flash CS4 buttons/can't get buttons to control anything
    Hi there
    I'm not sure how you wound up where you did. But you wound up in the Adobe Captivate forums. Please stand by as I move your thread to the Flash forums.
    Cheers... Rick
    >

  • I need help with setting my button to link to my website! URGENT HELP!!!!

    Hello everyone. Lately, I've been trying to link a button to my site with Action Script 3, however, whenever I try to load my movie, I keep getting an error! The error says: Scene 1, Layer 'Button', Frame 1, Line 5 1071: Syntax error: expected a definition keyword (such as function) after attribute fuction, not pes.
    This is what I wrote...
    stop();
    peshp_btn.addEventListener (MouseEvent.CLICK, pes);
    fuction pes(e:MouseEvent):void{
    var pesLink:URLRequest = new URLRequest("http://www.penguinentertainmentstudios.com");
    navigateToURL(pesLink,"_blank");
    PLEASE HELP ME I IVE BEEN TRYING FOR ALMOST 2 HOURS NOW!!!!!

    Use the following:
    peshp_btn.addEventListener(MouseEvent.CLICK, pes);
    function pes(event: MouseEvent) {
    var pesLink:URLRequest = new URLRequest("http://www.penguinentertainmentstudios.com");
    navigateToURL(pesLink, "_blank");

  • Help with linking buttons to Scenes

    Hey,
    Rookie to Flash and AS3. Just needed some help with my buttons. Im making a flash program about pancakes (random I know). I have a "Mainmenu" scene and then a "Recipe" scene. I have a button on my mainmenu which takes me to the recipe page when I click it, the code behind the button is
    "stop();btn_recipe.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {
    gotoAndStop(1, "Recipe");
    Then when I arrive at my recipe page I have a button which will take me back to my MainMenu, the code behind that button is:
    "stop();btn_home.addEventListener(MouseEvent.MOUSE_DOWN, mouse5DownHandler);function mouse5DownHandler(event:MouseEvent):void {
    gotoAndPlay(1, "MainMenu");
    So I run my program and the first button works and takes me to recipe page but the button to get to the main menu does nothing, click it and no response or anything
    Please help

    First, hopefully having all your code mushed onto the same line is a copy/paste error, otherwise it should look like...
    stop();
    btn_recipe.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void {
         gotoAndStop(1, "Recipe");
    If the intention is to click the buttons to make them work, then you should use CLICK instead of MOUSE_DOWN.  MOUSE_DOWN can be a persistent state whereas CLICK involves releasing it afterwards.
    As for the code to get you back home, where is it located on the timeline?  Are you getting any error messages when you try to use it?
    One thing you should learn to use is the trace() function.  It is useful for troubleshooting.  You can use it now to see if your second button is talking to the function at all...
    stop();
    btn_home.addEventListener(MouseEvent.CLICK, mouse5DownHandler);
    function mouse5DownHandler(event:MouseEvent):void {
         trace("the button works okay");
         gotoAndPlay(1, "MainMenu");
    If you don't get that message in the output panel, you'll know the button is not properly coded to work.
    Most folks here will recommend you get away from using scenes in a design that includes navigation--they have a history of being problematic.  Instead of using scenes, divide the one main timeline up into sections or use movieclips for the sections and manage their visibility... or do a bit of both.

  • Help With Scrolling Menu / Button Rollovers

    First thank you to anyone who can answer and help with this
    question.
    http://paragon.sortismarketing.com
    - at this link I have created a site with a simple scrolling menu.
    Now what I want to happen is when you rollOver the buttons on the
    scrolling menu they get larger and then smaller again after you
    roll off them.
    I know how to do this with tweening in a non moving
    environment, by making them a movie clip instead of button. But for
    some reason when I did this in this case it screwed the menu all up
    and made it go crazy. Is there a way to do this with action script
    that isn't going to screw up the underlying code for the
    scrolling?

    You can use the below code also. As your mouse pointer goes
    over the down, it will scroll down.
    on(rollOver){
    scrolltext.scroll -= 1;

  • Help with links in Dreamweaver8

    I am trying to get on speed with Dreamweaver8, then CS3. I
    built a custom site using Adobe CS2, Fireworks and then
    Dreamweaver8. I have 7 pages built from 3 different templates (with
    the same element but different layout). All the hyperlinks and
    links on the 7 pages worked just fine, but the moment I added a
    pop-up menu to the main page, all the links to other pages stopped
    working. I have looked over it , tried the auto link fix but can't
    seem to fix the broken links. Any tip or advice on how to go about
    this will be appreciated.
    Thanks.

    The ideal ratio for template pages to site pages is 1/#,
    meaning that you
    produce the entire site with a single template. This seems
    impossible at
    first blush, but it's not, particularly once you master the
    use of
    server-side includes, and CSS to build your pages. By this, I
    mean that you
    can handle subordinate section-specific navigation elements
    using
    server-side includes, and you can handle layout differences
    using CSS. It's
    not so hard.
    > On the pop-up, it was a just one menu pop-up on one of
    the links to one of
    > the
    > pages. I created it with the Behavior button in
    Fireworks
    New users find that irresistable. Even a little experience
    with them should
    tell you that it's deadly. There are much better ways to do
    those kinds of
    menus. But without seeing your code, we are all flying blind.
    > I can send you the pages for a review if you give me an
    address I can send
    > them to.
    Please, no. One of the benefits of a public forum like this
    one is that
    many people can participate/collaborate in fixing a problem.
    By sending
    someone a file, rather than making it public, you defeat that
    whole benefit.
    The best bet would be to upload the files to some webspace
    that you control,
    and post a link to the uploaded pages. Can you do that?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "inspt" <[email protected]> wrote in message
    news:[email protected]...
    > Murray wrote - "Why use templates at all with this kind
    of ratio? You know
    > it's
    > not
    > necessary to do this just because your layout changes a
    bit...."
    >
    > Thanks for your reply to my question. In answering your
    question or point
    > you
    > made above. You can easily tell that I am trying to get
    my hands around
    > using
    > the program. The layout of the pages changed almost all
    through the pages
    > and
    > the one way I thought I could get around that was to use
    different
    > template
    > files. At the end of the day, I got myself into more
    headaches and
    > heartaches -
    > all my links just disappeared on me. I am self-taught
    with a painfully
    > learning
    > experience. I believe there should be a better and
    easier way. I honestly
    > do
    > not know. Any help you can give me will be appreciated.
    >
    > On the pop-up, it was a just one menu pop-up on one of
    the links to one of
    > the
    > pages. I created it with the Behavior button in
    Fireworks, then
    > re-imported the
    > changes to Drmvr again and since then, the links got
    screwed up.
    >
    > I can send you the pages for a review if you give me an
    address I can send
    > them to.
    >
    > Thanks a lot for your help.
    >

  • Need help with audio on button ASAP THANKS!

    Hi,
    Using CS3 I added via properties audio to the "over" part of a gold button.  The audio I added is 4Mb in size which I had imported to the library.  When I selected "over" on the button and then using properties assigned the audio file .... the wave form appeared ... but not under "over" but over, down and hit.  Thus when I publish what is happening is the page loads fine ... the audio begins to play on roll over as wanted ...
    HERES THE GLITCH:  if you accidently roll over again a new audio begins to play out of sync with the first one ... basically you get the row, row row your boat effect where each roll over audio is delayed.
    MY FAILED SOLUTION:  I tried to move the audio file and assign it via properties under hit. Thus have to have someone click on the sound.  Yet the same outcome happend where the wave form appeared not just under hit but it showed on over, down and hit. The same thing happened when I tried assigning to "down".
    MY QUESTIONS:
    Is this caused by the sound file being too big?  I tried a small audio beed and it would assign directly under the part I assigned but not with the bigger 4MB audio file.
    If it is the size of the sound file, can I link the button to an external audio file. If so, what code would I use if I am using Action Script 2.0. I am very new at action script.
    If it is not the size, could some one please tell me how to fix this glitch.  I would be satisfied with the button working on either over or hit.  If you wish to see what the button is doing, you can see it online at www.signaturehill.com.
    THANKS.

    Hi Erika,
    That might just be what I need ... but I am confused as to where do put the action code.  Can you help me with the following questions:
    1. Did you put it inside the button via actionscript or did you select the button just and ad it there ...  or somewhere else? Since I have several buttons doing the same thing on different pages, I am not sure where to put it.
    2. What was the exact code you used  ie  on (release)  {....   StopAllSounds(); }  .... did you even use "release" or some other mouse event.
    Please include the action script code I might try since I am very new to scripting. THANK YOU>

  • Help with linking files

    I have several projects with 1000's of little clips in them- that have become unlinked- normally I can just use link media and that resolves it, but it seems like there has been either name changes to them (numbering in project panel seems different) or pathway to my ext hard drive has changed-help appreciated!!!

    Are you on a Mac, or a PC?
    If PC, what OS version do you have?
    The easiest way to find out exactly how your version of Windows sets drive letters is to go to Help, then type in "drive letter," without the quotation marks in the query box. You will then get all references to drive letter, and choose Setting Drive Letter, or similar syntax. That will step you through the process, and probably even provide a link to the disc management utility for your version.
    If you are on a Mac, then it would be Volume Name, but I cannot help with anything more than that, being a PC-only guy.
    Good luck,
    Hunt

  • Help with linked files/ compound paths please

    Hi - I am working with an illustrator file from another designer which has a compound path with linked files - when you link a new file the image is automatically resized and clipped to the path.  I am able to edit it but i want to make my own from scratch and can't figure it out. I'm working with Illustrator CS6. Any help greatly appreciated. Thanks

    Hi Steve - thanks for the reply - my question was a bit vague as I wasn't entirely sure what I was working with but I think your point about the new linked image scaling to the same size as the existing file has helped me understand it a bit more.  What I want to know how to do is to make an entirely new file with a clipping mask that I then link an image to.  I made a file with a clipping mask on the page and then chose file>place but the image I import is not being clipped (I ticked the link option when importing it) I see it working with the existing file I'm working with but I need to know how to make a new one myself.
    If this makes it clearer here's what I want to do ...
    I am making a banner, I have 3 flat jpegs of t-shirts that I want to place on the banner without their white background.  I made a clipping mask the same shape as the outline of the t-shirt and now I want to import the jpeg so it is a linked file and is clipped by the clipping mask and so I can use it in future to import different t-shirt image in without scaling and clipping them each time.
    REally appreciate your help, thanks.

  • Help with Find / Replace button title tag contents (text)

    Hi there,
    I designed my site with Sitegrinder (Medialab) –
    Currently all the title tags generated for buttons are the same as
    the actual html page name.
    The problem with this is that the tooltip which appears in
    browsers when you hover over the button with the mouse gives you
    the page name. Instead I want to use these tooltips to give the
    user an indication of what the function of the button is.
    An example: A zoom button above an image: Currenty the
    tootlip says “zoom imagename pagename” – Instead
    it should say “click here to zoom”.
    I need help to get the Dreamweaver Find and Replace tool to
    batch replace these tags for me for about a 100 pages.
    Here is an example of the code:
    <body>
    <div id="id1zoomimpastooilweddingbutton"><a
    href="zoomimpastooilwedding.html"
    title="zoomimpastooilwedding"></a></div>
    I only want to replace the text in the title tag - Since the
    text “zoom” appears several times in the body, I
    can’t get the Find tool to pick up and Replace the occurrence
    of “zoom” in the title only…….
    Options I’ve tried:
    Search Current document: Search for: “specific
    tag”: “title”, “containing”:
    “text” = zoom (I’ve tried this with
    “zoomimpastooilwedding” and zoom[^”]* with no
    results
    I’ve also tried: Search for: “specific
    tag”: “body”, “containing”:
    “specific tag” “title”
    “containing”: “text” = zoom
    etc……………..
    I need help with what parameters to enter in order to find
    and replace all the text within the title tag with my own text
    Thanks very much!
    Anton

    You have ~ 100 pages, each of which has images with title
    attributes (not
    tags), all of which BEGIN with the letters "zoom"?
    What do you want to replace that text with? Wouldn't it be
    different for
    each button? Or do you mean that you would do multiple
    sitewide searches,
    one for each button? This illustrates how wrong it is to not
    use DW
    Templates or server-side includes to simplify the management
    of your
    navigation elements....
    Did you ask Medialabs if it would be possible to specify this
    before
    generating the HTML?
    How did you like working with SiteGrinder? It looks like a
    nice product to
    me, although I'm not fond of the final results code-wise....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "unison123" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi there,
    >
    > I designed my site with Sitegrinder (Medialab) ?
    Currently all the title
    > tags
    > generated for buttons are the same as the actual html
    page name.
    >
    > The problem with this is that the tooltip which appears
    in browsers when
    > you
    > hover over the button with the mouse gives you the page
    name. Instead I
    > want to
    > use these tooltips to give the user an indication of
    what the function of
    > the
    > button is.
    >
    > An example: A zoom button above an image: Currenty the
    tootlip says ?zoom
    > imagename pagename? ? Instead it should say ?click here
    to zoom?.
    >
    > I need help to get the Dreamweaver Find and Replace tool
    to batch replace
    > these tags for me for about a 100 pages.
    >
    > Here is an example of the code:
    >
    > <body>
    > <div id="id1zoomimpastooilweddingbutton"><a
    > href="zoomimpastooilwedding.html"
    > title="zoomimpastooilwedding"></a></div>
    >
    > I only want to replace the text in the title tag - Since
    the text ?zoom?
    > appears several times in the body, I can?t get the Find
    tool to pick up
    > and
    > Replace the occurrence of ?zoom? in the title only??.
    >
    > Options I?ve tried:
    >
    > Search Current document: Search for: ?specific tag?:
    ?title?,
    > ?containing?:
    > ?text? = zoom (I?ve tried this with
    ?zoomimpastooilwedding? and zoom[^?]*
    > with
    > no results
    >
    > I?ve also tried: Search for: ?specific tag?: ?body?,
    ?containing?:
    > ?specific
    > tag? ?title? ?containing?: ?text? = zoom etc?????..
    >
    > I need help with what parameters to enter in order to
    find and replace all
    > the
    > text within the title tag with my own text
    >
    > Thanks very much!
    >
    > Anton
    >
    >

  • Help with linking Keynotes

    Hey, I am using Keynote 2. Any help with this issue would be greatly appreciated, this is what I've got. . . . . I want to have one Keynote presentation that I use as a sort of Table of Contents and create links to other keynotes that I will be using on any given night. I have the link working fine, but when the linked keynote gets to the last slide the presentation ends, I want it to go back to my contents slide. This is how powerpoint does it. Any suggestions???

    Welcome to the discussions, Amaj10.
    No, Keynote doesn't work that way. If you want a link back to your contents, you need to place a link on the last slide that will link you to the contents presentation.

  • Ipod touch help with missing accept button for terms and conditions

    I want to update my apps but when I try it tells me that i first have to accept the new terms and conditions, however, there is no accept button to click.
    I have tried the other option to have it sent by e-mail but when I open the e-mail it's still the same with no accept button.
    I went into settings and allowed cookies on safari.
    I have an ipod touch 4th gen with ios 6.1.3.  I am also not able to buy any apps, music , etc.
    Someone PLEASE help!!!!

    Under Safari settings I have also "cleared history" and "cleared cookies and data"
    I have also given the i-pod both a restart, and a hard restart (holding the power and home buttons until the apple appears)
    "private browsing" is set to off.  "block pop-ups" is off too.

  • Help with using same buttons on timeline

    This is really basic,
    I've got 3 buttons on the main timeline, which is 25 frames. All my actions are on frame 14.
    Three buttons work on frame 15. But these same 3 buttons stop working on frame 17  - why?
    Please visit link below:
    http://www.simplecelebrations.info

    If your code is on frame 14 and your buttons are on frame 15, those buttons can't work unless they were on frame 14 first.  If you place new instances of these buttons on frame 17 but do not assign code for them, they will not work.  When you assign code to objects, such as buttons, they need to be present when that code executes.  So if you execute that code in frame 14, and the buttons are in frame 17, they are not present when that code executes so they cannot work.
    What you may find easier to deal with might be to have the buttons span the timeline where they are needed, meaning they have a keyframe at frame 14 where they get coded, and that extends as far down the timeline as you know those buttons need to be accessible.  You do not create new keyframes of them.  Then, if you need to hide the buttons for any reason, then you hide them by setting their visible property to be false. And if you need to display them again, you set it to true.
    There is not issue with having different buttons command the same thing, but if you are going to do that, then the different buttons should share the same function.  When I want to share a function or other code, such as variables, I always create a layer that I dedicate to the entire timeline.  It extends from frame 1 thru the last frame of the timeline.  All code on this layer is in frame 1. Any code on this layer is then accessible by anything along the timeline.  Then, as needed, I will have another actions layer that deals with frame level actions.
    So what I would do in your case, if you want to use different instances of the same buttons, would be to have the shared layer hold my event handler functions.  Then in my frame level actions layer I would have keyframes where I have the buttons and assign my event listners in those frames.  So if I had identical buttons in frames 15 and 17, but they were different instances, then in frame 15 I would have the same event listener assignments as I do in frame 17.  These listeners would be calling on the same functions that I have in that shared actionscript layer.
    // frame 15 code of frame level actions layer
    stop();
    btn1.addEventListener(MouseEvent.CLICK,go15);
    btn2.addEventListener(MouseEvent.CLICK,go18);
    btn3.addEventListener(MouseEvent.CLICK,go19);
    btn4.addEventListener(MouseEvent.CLICK,go20);
    btnb.addEventListener(MouseEvent.CLICK,go15);
    btnc.addEventListener(MouseEvent.CLICK,go17);
    // frame 17 code of frame level actions layer
    stop();
    btn1.addEventListener(MouseEvent.CLICK,go15);
    btn2.addEventListener(MouseEvent.CLICK,go18);
    btn3.addEventListener(MouseEvent.CLICK,go19);
    btn4.addEventListener(MouseEvent.CLICK,go20);
    btnb.addEventListener(MouseEvent.CLICK,go15);
    btnc.addEventListener(MouseEvent.CLICK,go17);
    frame 1 of shared actionscript layer...
    function go15(e:MouseEvent):void
    gotoAndStop(15);
    function go18(e:MouseEvent):void
    gotoAndStop(18);
    function go19(e:MouseEvent):void
    gotoAndStop (19);
    function go20(e:MouseEvent):void
    gotoAndStop (20);
    function go17(e:MouseEvent):void
    gotoAndStop (17);

  • Help with links in flash  :(

    Hi,
    I am pretty new to flash and I am making a webpage. I can not
    get any of the nav links to work properly. The links are buttons
    and they have up and over states. The rollovers are working fine.
    The buttons have tweens on the on the main timeline because they
    fall into the frame. On the last frame I go into the actions and
    apply the "stop" action first, then I apply the get URL action and
    type in the website URL in the script assist. When I export to swf
    the rollover works but when I click on the button nothing
    happens....
    What am I doing wrong?????

    I think so, before get URL it says on (release)
    Is that right?
    It is working when I export to swf but when I place the swf
    file into dreamweaver and preview in browser nothing happens when I
    click the buttons... :(

Maybe you are looking for

  • ORACLE APPS DBA

    Hi, I do not this is a right place to put my query or not but I am looking for an opening as oracle apps dba. i have 4.7 years of IT experience in J2EE and oracle apps and oracle database(devlopement and administration). if any one have any opening f

  • To generate Script of  procedures/functions and packages with grants

    Hi is there wome way for to generate Source Code Script of the some functions, procedures and Packages in file I must to generate Script withall grants Tia

  • Problem in changing material master through BAPI_MATERIAL_SAVEDATA

    Hi Gurus, I am trying to update the custom field in accounting view, I am using BAPI_MATERIAL_SAVEDATA for this purpose. But apparantly, it is not working as desired. In last i am getting these value in returnmessages tab. Trying to create: 00396 ___

  • How to reset all Internet Explorer 8 settings for a different user profile?

    Sometimes users on locked down PCs that need their IE settings reset to resolved issues such as improper/old cached credentials stored in the browser after a password change etc.  These issues can be resolved by opening Internet Options, Advanced tab

  • CPU upgrade of my Satellite Pro L300-152

    hello my laptop is a : Toshiba Satellite Pro L300-152 Model no. PSLB1E-01R015EN Celeron 560 2.13GHz Can someone tell me which CPU I can safely upgrade this with, I use it in a fairly cool environment and would like just a few more 100mhz from it. Tha