Menu buttons only work in frame 1 - AS3

Hello, smart Flasher-people out there....it would be great if
you could help me with the following problem:
I have a basic navigation with 5 buttons sitting on my main
timeline. In frame 1 (on it's own separate layer), I have placed
the AS that calls the button functions and tells the playhead to
move to different keyframes within that main timeline and stop.
Any of the clicks originating from frame 1 function properly
and send the playhead to the respective new keyframe and stop.
However, from there, the buttons do not respond to click anymore.
Here's my script:
Mediat_btn.addEventListener(MouseEvent.MOUSE_DOWN,mouseDownHandlerMediat);
function mouseDownHandlerMediat(event:MouseEvent):void {
this.gotoAndStop("Mediation");
Coach_btn.addEventListener(MouseEvent.MOUSE_DOWN,mouseDownHandlerCoach);
function mouseDownHandlerCoach(event:MouseEvent):void {
this.gotoAndStop("Coaching");
Komp_btn.addEventListener(MouseEvent.MOUSE_DOWN,mouseDownHandlerKomp);
function mouseDownHandlerKomp(event:MouseEvent):void {
this.gotoAndStop("Kompetenzen");
Finanz_btn.addEventListener(MouseEvent.MOUSE_DOWN,mouseDownHandlerFinanz);
function mouseDownHandlerFinanz(event:MouseEvent):void {
this.gotoAndStop("Finanz");
Kont_btn.addEventListener(MouseEvent.MOUSE_DOWN,mouseDownHandlerKontakt);
function mouseDownHandlerKontakt(event:MouseEvent):void {
this.gotoAndStop("Kontakt");
Any idea as to why the script works when in frame one, but
doesn't work after having clicked a button and the playhead has
moved to another keyframe?
Any help would be greatly appreciated!! Thanks in advance....

Having them in different keyframes will kill the code for
them that was assigned in the first frame, so you would need to
have them span the timeline for first frame code to work for them.
Now here's one thing that someone disagreed with me on, but I
have yet to see that what they said work. I normally have timeline
layers dedicated to code that applies to the whole sections of the
timeline, meaning there would be no keyframes except the frame that
initiates the code for that layer/section.
So in your case, if the buttons span the timeline, so does
the layer used to assign their code. I would also use such a layer
for most functions because then they are available to whoever needs
them along the timeline... sort of a global home for code.
What someone told me was that you can interupt such
actionscript layers with other keyframes/code, but as I said, it
has yet to work that way for me... if I try it, the code is
forgotten, so I leave the roads open.

Similar Messages

  • Title & Menu Buttons not working correctly on remote control/ set top player but work in preview.

    Title & Menu Buttons not working correctly on remote control/ set top player but work in encore preview. This only happens for a Blu ray project. When a user presses the menu button it should go to the previous menu they were on but it goes to the main menu. When they press the title button they should go to the main menu but it doesn't do anything. My DVD projects work as expected.I've tried creating a new "test" project with different footage and still get the same undesirable results.
    Overrides grayed out and set to "not set" for timelines and menus.Project settings and build are set to blu ray. Also I've noticed when I preview a Bluray project the preview window shows a red colored disc next to the Title button when viewing the timelines and green when playing the menus but not so for a DVD project it displays red if motion menus and or timelines are not rendered/encoded. I'm not using motion menus and all the media is encoded according to the project specs.
    I've searched this forum but couldn't find the answer. Any help or redirects to a solution would be appreciated. Working with CS5. Thanks.

    I found out on my Samsung Blu ray player the remote has a tools button on it that brings up audio, angle, chapter selection etc.and also title selection which is actually the menus and the timelines unfortunately. It's not as easy or direct as last menu selected but it's a workaround at least. I also plan on using a pop up menu. I'll let you know.

  • Menu button not working

    I've got a 6gb mini, had it since Sept 05. Yesterday the menu button stopped working, so I can't choose what music it plays, it only plays on shuffle as I can't get back up. I haven't done anything to it so I wondered what to do. I got my iPod in the US but I live in the UK. I bought the Applecare Protection Plan when I got it but forgot to enroll it, so I don't know if it's still valid. It should still be covered under the protection but I don't know if I've left it too late to register it. What do I do?

    If doing a Restore and reset do not help, very likely a hardware issue
    In case your iPod is no longer covered by the warranty and you want to find a second repairing company, you can try iPodResQ at your own risk
    http://www.ipodresq.com/index.php

  • Iphone 4: Home Button Not Working. The home button only works when it is connected to iTunes, once i disconnet it does not work, i have tried a restore to factory settings but it still is not working. Any suggestions?

    iphone 4: Home Button Not Working. The home button only works when it is connected to iTunes, once i disconnet it does not work, i have tried a restore to factory settings but it still is not working. Any suggestions?

    Apple, as I said, does not repair your iPhone. All hardware service issues are handled by replacing the unit. So they can't handle the home-button issue without also addressing the issue of the cracked screen, for which they'll almost certainly charge you. But you can make an appointment at an Apple Store or call Apple tech support and plead your case.
    Regards.

  • Back button only works about 50% of the time. Have to hit it twice, sometimes three times before it works. Problem is intermittent. Firefox 3.6.10 on Mac OS 10.6.4 (same on both MacBook and iMac machines).

    Back button only works about 50% of the time. Have to hit it twice, sometimes three times before it works. Problem is intermittent. Firefox 3.6.10 on Mac OS 10.6.4 (same on both MacBook and iMac machines).

    You can try http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Menu button doesnt work

    All of a sudden the menu button stopped working. It was fine one day then I put the ipod on charge, several days later when I tried to use it again the Menu button no longer works...
    Actually I just realized that the Play/Pause button doesnt work correctly either. When you push and hold it it does not turn the device off anymore although it would still pause/play the songs. The forward/reverse work ok.
    I tried resetting the Ipod using the updater and that didnt help. I also tried Menu + Select ... strangely enough it resets the device but after it resets the Menu key doesnt work.
    Has anyone experienced this problem?
    I submitted a service request. Is there any way of modifying the service request since I just realized that the play/pause button is screwed up also?
    Finally, when you turn the hold on/off is that supposed to turn the backlight on/off as well? I never paid attention to it but now when I turn hold on that also turns the backlight on...is that screwed up as well?

    I am having a similar problem with my mini - it turns on fine and will scroll through the menus, but will not respond by going back through the menus. Instead, it freezes on a screen and does not respond to anything except resetting it (menu & select button). Doesn't seem like the proper way to navigate through the screens and is completely frustrating. I was ready to cry yesterday at the gym because it wouldn't work and didn't know the reset "trick" until 3 hours later! I have also had many problems turning it off too. My brother who owns a regular iPod thinks I am crazy but at least I am seeing people out there with similar problems.
    On another note, I have to say I am completely disappointed with Apple. The company loves to portray this user-friendly persona, but in truth it is not that way at all. I received my mini in May and have just started to use it full force this month (October) ... now my 30-day phone support has expired and if I want "live" help I have to pay $50 for extended service. That's bull - I'd like some real answers but have been relegated to chat boards (no offense) and trying to troubleshoot the problem myself by finding close but not exact postings. It seems like such a deceptive bait & switch ploy by Apple. I am tempted to send my mini back for service but just read on the web site that I could be charged up to $100 for service. Again, sounds very sneaky so not sure if I should take the risk or live with a highly annoying product defect. Any suggestions?

  • Menu button wont work! pleeeease help!

    my i pod mini's menu button wont work.
    i'll push it and it doesn't respond.
    and i cant reset it because i need to use the menu button.
    also...the backlight will come on at random times lyk even when im not using it. and it beeps sometimes too. just really loud beeps, not through the headphones but the actual i pod.
    i dont know whats going on.
    and i need to use my menu button.
    please help me. i need answers!
    please and thank you.
    <333 a L e x x<br>
    windows   Windows XP  

    Very likely it is a hardware issue (exactly same as mine). I am afraid to say that you need to send it for repairing. You will get a replacement if your iPod mini still under the warranty

  • Can't get "Menu" button to work

    I have the 2nd gen, 4GB nano and the Menu button doesn't work. It is fully charged, I can play music, use all the other buttons, but cannot use the Menu button. Any ideas on what to do?

    I have same issue, except my MENU button doesnt work. All the other buttons work

  • My home button only works occasionally. Has anyone had this problem? Solution?

    my home button only works occasionally. Has anyone had this problem? Solution?

    Fix a broken, unresponsive or sticky iPhone Home Button

  • Clickwheel/Menu buttons stopped working + ASP/Warranty question

    Today, my year old 2nd gen nano's clickwheel and menu button stopped working. The hold button works, Itunes sees the thing, disconnecting the headphones does what it supposed to do and everything appears to be in order, except for the buttons. Neither resetting, nor restoring the software did resolve the issue and I am left with a small, elegant, brushed aluminium finished brick with music in it.
    Luckily, an Apple ASP isn't particulary far from where I live and I could and probably should bring it there. However, I am currently in a country that is not the one I bought the Ipod in and my purchase receipt and anything else that might have came with it is some 3000 km away.
    Does anyone know if bringing just the player to an ASP (it does have a serial number) has any remote chance of getting a warranty repair? And, if not, is it worth it even bothering with the repair, in terms of cost?

    Hi Kevinsen and welcome to the BlackBerry Support Community Forums!
    I would suggest performing a backup of your BlackBerry® smartphone then reloading the software as shown in the article below:
    KB11320 - How to perform a clean reload of the BlackBerry Device Software using BlackBerry Desktop M...
    or
    KB19915 - How to perform a clean reload of BlackBerry smartphone application software using BlackBer...
    Thanks
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Add Comment button only works on .mac domain

    I have a personal domain through Apple, and the add comment button only works when i go to my .mac domain. When I go through my personal domain it says error!

    Yep.
    Those needed files are not served by your iDisk. They are served using Apple servers and only work for .Mac (iDisk) accounts.

  • Hi my lock button only works sometimes on my iphone 5 , could this be because i have not updated to ios 7 yet

    hi my lock button only works sometimes on my iphone 5 , could this be because i have not updated to ios 7 yet, thanks for the help!

    No.
    You're welcome.

  • My menu button doesnt work half the time

    my menu button doesnt work half the time

    You can copy the photos and other data to your computer, the mentioned article tells you how to.
    The content of a backup is described here: iTunes: About iOS backups
    Copying personal photos and videos from iPhone, iPad, or iPod touch to your computer

  • Sub menu buttons not working on mobiles

    Why are my sub menu buttons not working on mobile phones but working fine on computers?
    Sub menu buttons come under these buttons, Our funerals services, Advice and information.
    http://www.vanessaroberts.co.uk/

    You are using a Spry menubar widget. Spry was created pre-touch-screen systems and hence not designed for touch screens.
    There are a number of solutions available to you
    1. Don't have an active link on the main menu item
    2. Place submenus in the page that is opened by the main menu item, e.g. as a vertical menu
    3. Use Spry Menu Bar ver 2.0
    3. Use a different menu system that is geared to accommodate touch screens
    Because of the demise of Spry, see here http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l, option 3 looks like the best option.
    There are a number of free-of-charge jQuery menubars, you could also opt for one of the commercial menubars such as PVII, WebAssist or DMXZone

  • Please help! my menu button stopped working =

    i just bought an imove speaker for my ipod mini and everything was going great until i disconnected my ipod from it...now my menu button doesnt work! its stuck on shuffle songs and i cant reach my playlists or any other features anymore....essentially it has become an ipod shuffle...please please plaese help...why isn't my menu button functioning anymore? thanks so much for any help!!
    ipod mini    

    okay so i see theres a lot of cases of freezing...guess that could be it....ill try resetting it after work...hope thats it...thanks anyway....

Maybe you are looking for

  • IPod Shuffle(2nd Gen) will not sync or restore

    I've done it all. Tried different USB slots. The 5 R's. Reset Utility. Made the appleipod.bat file and ran it with the .dll's.... My iPod wont sync and allow new music to be put on. I was able to reset the iPod with the reset utility and I have no mu

  • PDF ligature display delayed in browser

    I am having problems with ligatures in a pdf displaying correctly in my browser. I would love some insight as to what is causing this. Here are the details: PDF exported from InDesign CS3 > Uploaded to website > Click on link to open > PDF displays i

  • Messages are not dequeing from the Queue

    I am using Oracle Advanced Queueing. PL/SQL API for enqueue JMS API for Dequeue Messages asynchronously (register listener and using onMessage()) It is multi consumer queue. The program used to work fine. Now, it has stopped. Now, we can enqueue as m

  • NFS file sharing with a unix / IRIX box

    Anybody got a concrete procedure for enabling a basic shared folder? I just want to transfer some files from the IRIX box to my Mac using a simple shared folder, I've tried NFS Manager and Disk Utility but I just can't get it to work. There is a fold

  • Data from oracle to excel very urgent

    hi all, im using servlets for fetching the data from oracle , i want to display the data which i get from orcle in excel sheet. A code snippet regarding this is highly appreciated... Thanks in advance