Flash CS4 as3 buttons don't respond

I have a flash problem I can only click on one button and that's it. I have 5 buttons that go to different pages but if i click on, lets say the about button, it will go but that's it. I can't click on any other buttton. The code is below. I don't see what i'm doing wrong. Help is needed. Thanks!
stop();
home.addEventListener(MouseEvent.CLICK, gohome);
function gohome(MouseEvent):void{
gotoAndStop(1);
about.addEventListener(MouseEvent.CLICK, goabout);
function goabout(MouseEvent):void{
gotoAndStop(2);
history.addEventListener(MouseEvent.CLICK, gohistory);
function gohistory(MouseEvent):void{
gotoAndStop(3);
cast.addEventListener(MouseEvent.CLICK, gocast);
function gocast(MouseEvent):void{
gotoAndStop(4);
bios.addEventListener(MouseEvent.CLICK, gobios);
function gobios(MouseEvent):void{
gotoAndStop(5);
tickets.addEventListener(MouseEvent.CLICK, gotickets);
function gotickets(MouseEvent):void{
gotoAndStop(6);

I did a flash site for a play. I have 6 buttons at top labeled: Home, About, History, The Cast, Bios, The Tickets. I have all the buttons named and gave them a instance name. When I run the program I want to be able to go to the button I push. But when I run it, it starts up correctly but when I click on a button it freezes, I can still click on the other buttons but the pages don't change.
Thanks for any help!
Sent via the HTC Vivid™, an AT&T 4G LTE smartphone

Similar Messages

  • Adobe flash cs4 as3 button question

    Hi,
    I just wonder that how can i write this code  that means if the "specific" button is clicked(i mean if the homebutton is clicked=true) like this..
    and how can i refer a button that in main stage while in an another clip's substage..
    ty all

    A button beiong clicked is an event, not a persistent state, so if you want to have some conditional outside of the button's normal event listening/handling code, then you would need to create such a property/variable.  So you could create a variable: var homeClicked:Boolean = false;  and when the button gets clicked, your event handler function could assign: homeClicked = true.  You could then use something like...
    if(homeClicked){
         // do whatever you intend
    To refer to an object in the parent timeline you can use: MovieClip(this.parent).objectName

  • (Help) Using Input text in Flash CS4 AS3

    I am trying to take a user's input (His Name) and then greet the user on the next frame using the name he previously entered. I googled for 2days and was unable to find a way to do this on flash CS4 AS3, i guess because im very new to flash (only 2-3weeks )
    Any help would be greatly appreciated, and i am sorry if this was already answered in the forums.
    thanks for reading.

    If your interested... here's some general "rules of the road" that are basically courtesies...
    Don't post the same question in different forums (crossposting).  Folks that help don't like that because they can waste their time providing the same response someone else already offered elsewhere, or their helpful info gets no attention because the OP (original poster) got wrapped up in the discussion elsewhere and never went back to the other forums.  I saw one time where the OP suffered from doing this... the first person to respond in one forum said what they wanted couldn't be done, while my response in another forum showed them how to do it... but they accepted that it couldn't be done and never returned.
    Don't post in someone else's posting unless the exact same situation applies to you and it is a current posting.  It is a bit rude to step into someone else's posting just to get attention, which some people do... some with totally unrelated problems.  Or if your problem is even slightly different, it can end up confusing matters for all involved... trying to juggle helping two people where different solutions are needed.
    If you get one problem resolved and have another you want help with that does not involve the first, start a new posting.  People search these forums so it helps to have topics match the postings, which will not apply if mutliple topics get resolved under one title.  I recently saw one person tell someone to start a new posting even though they were following up to clarify something of the solution they received... that's wrong and is more likely someone with a case of points greed... as useless as points are, it happens.

  • How can I NOT let collision happen in Flash CS4(AS3)?

    I have been playing with collisions for quite a while, but cannot seem to get it just the way i want it to be.
    I made a new rectangle into a Movie Clip, with an instance name : "block_mc"
    I made a sphere into a Movie Clip, with an instance name : "ball_mc"
    I made the sphere(ball_mc) movable with the arrow keys.(see post:http://forums.adobe.com/thread/491457?tstart=0 )
    Now I wanted to try and make the sphere(ball_mc) stop moving so it wont hit the rectangle(block_mc), so that the rectangle(block_mc) would act like a solid object.
    Meaning the sphere(ball_mc) would not be able to touch the rectangle(block_mc). It would act like a wall.
    Now my problem is I don't know if there is a way of not letting objects collide?
    I tried the ".hitTestObject()" but that did not work for me.
    ~ Thanks for Help and Advice~

    I apologize, for this confusing long question, I simply ment to ask:
    Is there a way Flash CS4(AS3.0) will not let Objects on stage collide?
    ~Thank you for any Tips, Advice and Help~

  • Need help in screen capturing for flash CS4 AS3

    Hi, i need help!!!!!!!!!!!!!!!!!!!!!! URGENT!
    I am currently doing Augmented Reality.
    I got my marker to detect my model but my problem now is how to screen capture the content that is in swf.
    (As in capture the dae model shown in the comp not from webcam.)
    & also i just want to capture the swf window not the whole desktop.
    I read online, they say its impossible?
    Or is it possible to call screen capture function in javascript to flash CS4? (LIke external data)
    (Moreover, does anyone know how to detect multiple dae models with different markers?)
    Anyone can help??? Thanks in adv!!

    My current program (Flash CS4, AS3) only can capture what the webcam sees.
    How do i change it to screen capture (something like print screen) with my .DAE models?
    In the case, when i click on the capture button, it print screen.
    Here's part of the code that capture what the webcam sees.
    private function captureImage(e:MouseEvent):void
       bmd.draw(stage);
       bmp = new Bitmap(bmd);
       bmp.x = 140;
       bmp.y = 40;
       addChild(bmp);
       capture.visible = false;
       saveButton.visible = true;
       discardButton.visible = true;
    Really really need help! URGENT!
    Thanks!

  • HT4859 I have the error message "Not enough storage. Cannot backup, not enough backup space in ICloud . . . ", but now the "close" and "settings" buttons don't respond and I cant get the IPad to open so I can go change settings. What do I do?

    I have the error message "Not enough storage. Cannot backup, not enough backup space in ICloud . . . ", but now the "close" and "settings" buttons don't respond and I cant get the IPad to open so I can go change settings. What do I do?

    For a "hard" restart of your iPad just press the home and power button at the same time and hold it for at least 10-15 sec. until it restarts.

  • Buttons don't respond sometimes/scroll bar slow

    I have iPod nano that's approximately 2 years old. Buttons sometimes don't respond - have to push repeatedly and then will eventually respond. Also scroll bar is slowing down although does work. Dying or is there a fix? Any info would be appreciated!

    The most common trouble shooting solution is to force-quit the Music app. See if that works for you.

  • Mouse back/forward buttons don't respond after exiting from full screen Flash video

    Yeah. Has anyone else encountered this? After viewing a full
    screen video (YouTube, Hulu) and exiting (via the ESC button), the
    back and foward buttons on my mouse stop responding. Really!
    Usually I will have to go back into a full-screen video twice for
    the buttons to get "stuck," and then it takes them several minutes
    to regain their functionality.
    I've had this going on for over a year now, and I'm finally
    sick of it enough to where I want to get some help. I've narrowed
    it down to the Flash player as being the culprit, and it happens on
    every browser I've tried it on (Firefox 3: RC2, RC1, Beta5; Firefox
    2; IE7; IE6; Safari 3.x). This started happening when I upgraded
    the Flash Player and the first offending version would be the one
    that introduced the current full screen Flash video technology. I'm
    guessing it was 9.0.
    I have a Logitech MediaPlay wireless mouse, Win XP SP2. I
    have the latest version of Flash and the most up-to-date mouse
    drivers.

    I have the same exact problem, only a different model
    Logitech. Have you found a solution? Thanks, Shawn.
    [email protected]

  • How can I execute certain code once the button on stake is hit at runtime? (in Flash CS4(AS3))

    Hi
    I am trying to figure out how to execute code once a button_btn is hit on stage at runtime.
    Thank you for help and tips!

    You can also try to create an event listener for the button itself.  (In as2.0 it was onClick or onPress or something to that effect, now I'm not sure what they are syntaxed as but there are event listeners for buttons which "listen" to see if the button has been pressed.  Mouse Events are good because it makes sure that the mouse is actually performing the action.  Don't know about accessibility with Mouse Events though since you can use a Tab key to direct input of buttons so try the Button event listeners.

  • SWF management - Adobe Flash CS4 AS3

    I want to design my own website in flash. But I have a couple of questions about swf management.
    I have a frame which has buttons -it will be my main page- each button will call a swf file as
    submenu.
    For example I have the "about us" button. On click a swf -about us- submenu will appear.
    1. When I call -on the click of a button- a swf file I want that file to have no background, cause I
    want as background my current frame. -generally I want each swf file that i call to have no
    background. How can I do that?
    2. I want to call an intro animation. Its a swf file -short presentation of my copmany it lasts 10
    sec- I want that animation to play before my menu appears. how can I do that? Is it good Idea to
    call that intro as an external swf file or should I make it in my current project -my main page-
    3. (its similar to 2) Lets say that I have 2 layers. In my first layer and frame(1) I will place the
    movieclip1. In my second layer and frame(2) I will place movieclip2. Each movie clip lasts 10
    seconds. When I test my project I want to my first movieclip to be played (10 seconds) and then my
    second clip (another 10 seconds). What  should my actionsript be? One way that I figured out its
    that in order for my first clip to be played for ten seconds I have to place it on
    24fps*10seconds=240frames -the first frame will be the keyframe.
    thank you all in advance

    One last thing. I want now to combine importing code with your code.
    With the following code I am loading intro.swf from file "clips" into my project - first frame (1) - in a current position (x,y). It is supposed (for the imported swf) to start when I test the movie (project) and to go to the next frame when the intro clip (the same imported swf) is done.
    var Xpos:Number=110;
    var Ypos:Number=180;
    var swf:MovieClip=new Loader();
    var defaultSWF:URLRequest=new URLRequest("clips/intro.swf");
    stop();
    loader.load(defaultSWF);
    loader.x=Xpos;
    loader.y=Ypos;
    addChild(loader);
    myclip1.addEventListener(Event.ENTER_FRAME,checkF);
    function checkF(e:Event):void{
         if(e.target.currentFrame==e.target.totalFrames){
         myclip1.removeEventListener(Event.ENTER_FRAME,checkF);
         removeChild(loader);
         nextFrame();
    my questions for the code are:
    1. should be there a stop(); before the loader? (in the upbove code there is)
    2.Is the removeChild(loader) placed in the right line?
    3.Any corrections?

  • JDialog Buttons don't respond in JDK 1.3.1

    Hi,
    I recently had to change from JDK 1.3 to JDK 1.3.1, in order to be able to use the MS Global IME and Japanese Characters in my App.
    The problem is that some of my Dialogs stopped responding both to mouse and keyboard events (I can still close the Dialog through the window menu and the (x) button on the top-right corner).
    I've looked in the Bug database, and found some entries that look like what I'm getting (http://developer.java.sun.com/developer/bugParade/bugs/4531693.html). The status of these bugs is fixed (I don't know in which version). I downloaded JDK 1.3.1_06 (the last version for JDK 1.3.1!?) and still have the same problems.
    If anyone has solved this problem or can help me solve it, I would really like to know!
    TIA,
    Paulo Breda

    Actually, I think 1.4.1 also has the problem, eventhough I didn't test.
    Anyway changing to 1.4.1 isn't a choice, because it would imply too many changes to the code, and to third-party components, that aren't supported...
    If someone has a better solution, I'm willing to give my Duke dollars away!

  • IPod screen went white, then black. Buttons don't respond, can't do 5Rs.

    About 20 minutes ago, I plugged my iPod into my computer to charge, and sync some new music to it. It was fine when I plugged it in, the screen showed everything, etc. I removed some music from iTunes while the other music I wished to sync was downloading to my computer itself. After about 10 minutes the music finished, and I reopened iTunes to sync the music. I noticed my iPod wasn't on the sidebar, and checked the iPod itself. The screen was completely white, and I couldn't do anything with it. I unplugged it, plugged it back in, nothing. I pressed all the buttons, moved the wheel around, and heard some sounds, but then the screen turned black. Nothing is responding, and when I plug my iPod into my computer, it makes the sound to signal that I've plugged something in, but does not appear in My Computer or iTunes. I've tried the 5Rs, and some of them are even impossible since it doesn't show up in iTunes. Can anyone help?

    See  Display Shows White Screen Here
    http://support.apple.com/kb/TS2771
    If no joy... Try letting the Battery Fully Drain... Then Charge the Device for at least 30 Minutes...

  • Right Click Arrange  at runtime in code? in Flash CS4 (AS3)

    Hi,
    I was wondering if and how I can arrange movie clips in AS3 code. I want it to have the same effect as "Right Click > Arrange > Bring To Front" in the project, only during runtime and through code.
    Thank you for help and advice!

    What you can do if you want right click is create a new ContextMenu  and ContextMenuItem. You'll have to add a mouse click listener to each  of your stage items though so you can track the last one clicked;
    import flash.events.ContextMenuEvent;
    import flash.ui.ContextMenu;
    import flash.ui.ContextMenuItem;
    var  lastItem:MovieClip;
    var i:int;
    for(i =  0; i < stage.numChildren; ++i){
          stage.getChildAt(i).addEventListener(MouseEvent.MOUSE_DOWN,  itemClicked);
    function  itemClicked(e:MouseEvent):void
         lastItem =  e.currentTarget as MovieClip;
    var  rightClickMenu:ContextMenu = new ContextMenu();
    rightClickMenu.hideBuiltInItems();
    rightClickMenu.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,  rightClickMenuClicked);
    var bringToFront:ContextMenuItem =  new ContextMenuItem("Bring To Front");
    rightClickMenu.customItems = [bringToFront];
    stage.showDefaultContextMenu  = false;
    stage.contextMenu = rightClickMenu;
    function  rightClickMenuClicked(e:ContextMenuEvent):void
          switch (e.mouseTarget.label)
              case "Bring To  Front":
                   if(lastItem != null){
                         lastItem.parent.addChild(lastItem);           
               break;
    NOTE: You do not need to  first remove the child to add it again. By adding an existing child  you're simply resetting it to the top depth.

  • Forms in flash cs4 as3

    I Need to create a form that a user can fill out and have flash create a file and send the info  to a folder on the server. This is a hosted server so I am not able to do much in the way of scripts that i am aware of. What is the best way to do this?

    The PHP file is a server-side script so it goes on the server.
    These forums are not a resource for tutorials/lessons.  You will often get a response that tells you to search Google--it generally means that someone else has already prepared the information you're looking for, and usually in tutorial-level detail.  Don't underestimate Google and the Flash help documents.  ANY time I am stuck I turn to either of those two things to get my answers... not any forums, though sometimes the Google results that solve my problems are in forums.

  • How can I check if a function is or is not called from the event listener? in Flash CS4 (AS3)

    Hi,
    I came across a little problem.
    I put an event listener inside a for loop and the for loop inside a function.
    I want the for loop to end as soon as the event listener inside the for loop calls its function.
    Here is the general code for a better picture.
    Code:
    this.addEventListener(Event.ENTER_FRAME, function#1);
    function function#1(event:Event):void{
              if(something is true){
                        for(var i = 0; i < numOfmy_mcs; i++){
                                  this["my_mc_"+String(i)].addEventListener(MouseEvent.CLICK, function#2);
    function function#2(e:Event):void{
    //do something cool here
    Thank you for any help!

    kglad wrote:
    that for-loop (if it executes), defines listeners for interactive objects.  that will complete long before any object is clicked.
    Well yes but it does it again and again (frames per second times seconds = number of times it goes through the code if i'm not mistaken), because it is inside a function, and through testing i found out that it works like this:
    Example:
    there are 5 my_mc's in my project: (my_mc_0, my_mc_1, my_mc_2, my_mc_3, my_mc_4)
    if i click my_mc_0 function#2 is called and executed. BUT only after the loop finishes (i know this from tons of testing)...which is unnecessary since you cannot click two places at once. This might not be a problem in this example because i am only using 5 my_mc's buy if i use 500000000 my_mc's it would make a lot of difference.
    is there a way to stop the loop if the function is called?
    ...maybe there is a better way to write it, the only alternative i know that works is if i manually write every single listener and this also is logical in this example but as i said next to impossible if the numbers get bigger.
    -Note
    I didn't specify this earlier but function#2 makes the if statement false so it wont jump back into it.
    Thank you for the help I really appreciate it!
    3rd edit...don't know what's wrong with me

Maybe you are looking for

  • User exit - stop processing with error message displayed

    Hi guys, My scenario is like this Whil doing migo for the same batch number more than 3 times i should not allow to post the document. I have the material number and batch number in a seperate ztable for checking this found out there is an exit. Enha

  • Want to be sure it's OK to install Windows XP Home on my New Mac mini

    Last night I bought the Mac mini with DVD SuperDrive, 120GB hard drive, 1GB RAM, 2.0 GHz Intel Core 2 Duo processor, and Leopard. At the Apple Store. Got an adapter so I can hook the mini up to my 23" Cinema Display (1998 vintage). Also got Fusion. A

  • Problem while exporting ALV column header to excel sheet.

    Hi, I am able to export an ALV grid details to an excel sheet. But the ALV column headers when exported to excel sheet are getting truncated. For eg: if my column header in ALV grid is displayed as 'Material' then the column header in excel sheet is

  • Ad page for one site won't display, but works fine with Internet Explorer

    Main page of one site displays fine, but ad page won't. Works fine under Internet explorer. Didn't have problem before.

  • Trying to edit css site

    im trying to get a hang of working with a css website (www.investix.co.uk) on the homepage there is a big white gap on the right side. for some reason I cannot access this portion via dreamweaver. I have an an automated gif banner that i'd love to in