My home button will not work after redoing project 3 times

Using CS 5.5, I am using a single scene with buttons that all appear on the first frame along with code snippet based AS also on the first frame that when clicked, takes the user to a different frame. Everything seems to work fine, except, I have a button that when clicked on, is supposed to go back home to the first frame, though nothing happens when it is clicked on. Is there some conflicting code here?
Thanks for any help!
The following is my AS on the first frame:
stop();
Home_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);
function fl_ClickToGoToAndStopAtFrame(event:MouseEvent):void
    gotoAndStop(1);
Browse.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_2);
function fl_ClickToGoToAndStopAtFrame_2(event:MouseEvent):void
    gotoAndStop(5);
Buy.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_3);
function fl_ClickToGoToAndStopAtFrame_3(event:MouseEvent):void
    gotoAndStop(10);
Gallery.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_4);
function fl_ClickToGoToAndStopAtFrame_4(event:MouseEvent):void
    gotoAndStop(15);
Help.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_5);
function fl_ClickToGoToAndStopAtFrame_5(event:MouseEvent):void
    gotoAndStop(20);

Place you code on its own layer and make sure it extends the length of your timeline so that it is accessible anywhere along it.
For new instances of the buttons you should only need to add the event listener.
   Home_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);
but you can also have this button on its own layer and have it extend the length of where it is used so that you only need one instance of it.
The same event handler function can be shared as long as you have it on a layer that ius accessible for the length of the timeline.  To put a trace in the function, that's pretty much all you need to do...
   function fl_ClickToGoToAndStopAtFrame(event:MouseEvent):void
        trace("the button worked");
       gotoAndStop(1);
The trace() function is one of the key tools for troubleshooting code.  YOu can use it to see what the values of different properties/variables are at any time to help track down where something is going wrong (or even going right).  For the case just shown, all it is doing is letting you know if clicking the button actually resulted in the event handler function being executed.  If it does not trace the output indicated, you will know that the button is not connected to an event listener that is calling the function.

Similar Messages

  • My home button will not work however there is suppose to be a app for this, does anyone know what it is? Any help wuld b great...Thanks

    my home button will not work...however I have heard that there is suppose to be an app
    that you can download that looks like a little red dot that you can move over where ever you want to go
    and click therefore to bypass the home button....does anyone know anything about this?
    If so would you please share the name of it? Your help would be greatly appreciated. Or could anyone
    offer any solutions to this button problem? I have tried the alchol thing...did not work.
    Thanks for any help.

    No need to download, is a native application on the iphone. go to settings »General» accessibility »assistive touch" turn on.

  • HT1349 my home button will not work properly... I have to hold it down several times for it to go to the home screen

    my home button will not work properly... I have to hold it down several times for it to go to the home screen

    I would try a restore just to see if it could be something software related, but if that doesn't work I would recommend taking to an Apple Store to see if it is a serious hardware issue and if it is, assuming you're in warranty, then they would be able to replace your phone.

  • My home button will not work, can anyone help.

    I bought my ipad2 about 3 weeks ago in the uk and brought it to Cyprus where there are no apple shops and no service agreement. Now, the home button will not work or works intermittently . Any ideas please? Thanks

    See:
    iPad 2 home button fail: Apple Support
    fix for Home buttonCommunities
    Fix a broken, unresponsive or sticky iPhone Home Button

  • HOME BUTTON WILL NOT WORK

    Home button suddenly stopped working....what do I do???

    I have been told that in order for it to be "covered" I have to have some sort of apple care thing on it??  This is my son's phone and I am just trying to help him get it figured out.  When you say take it for service, are you talking about taking it to an Apple Store?

  • My ipod has just black screen and the home button is not working. what will i do? help please!

    my ipod has just black screen and the home button is not working. what will i do? help please!

    Try:
    - iOS: Not responding or does not turn on
    When it says place the iPodin recovery mode use this prgram.
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • TS3274 ipad 2 will not charge and home button does not work. batter at 39% so cannot upgrade over wi-fi. What can I do?

    my wife's iPad home button has stopped working, in addition it will not charge either through usb or the wall.
    She uses it to read novels mainly and has not mishandled it.
    Any help is appreciated.
    Thanks
    OM_CN

    I realize that you said that the home button is not working, but try this anyway.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. See if the battery will show that it is charging after the iPad starts up.

  • My ipod touch 5th generation is not turning on and i cant restart it because the home button does not work and it will not connect to anything

    my ipod touch 5th generation is not turning on and i cant restart it because the home button does not work and it will not connect to anything

    Get it fixed then, make an appointment with the Apple genius bar.

  • HT4623 My iPhone 4 shut off and will not turn on.  My home button does not work.  Any suggestions?

    My iPhone 4 worked fine last night.  When I woke up this morning, it had shut off and will not turn back on.  I looked up the HOME+SLEEP key solutions, but my home button does not work.  Any suggestions?

    Try a reset: Hold down the home button along with the sleep/wake button until you see the apple, then let go.

  • HT204291 After updating software on my Apple TV home sharing will not work. Both Apple TV and iMac have home sharing on but when Computer is selected on Apple TV I just get a message saying "turn home sharing on".  But it is.  How can I solve this problem

    I have just updated the software on my Apple TV since then home sharing will not work though I had not used it since installing iOS6 on my iPad 3.  Home sharing is shown to be on on the Apple TV and on on my iMac.  The Apple TV is connected to the router with an ethernet cable and all functions work correctly apart from my computer.
    I have done the following. 
    Switched off the Apple TV and rebooted, did the same with iMac
    Turned off home sharing then turned it on.
    Checked that home sharing is on on both devices.
    Selected Computer
    Get a message telling me to turn home sharing on - IT IS!
    Tried using airplay mirroring on the iPad but the airplay function is missing from iPad.
    It is so annoying since before iOS6 and updating the Apple TV software everything worked perfectly.  Any help would be very gratefully received.
    Thanks

    Hi Everyone,
    hope this message finds you all in time. The recent Apple TV update 5.1 is terrible. Apple knows it is which is why (thankfully for some relentless user -I have no idea who but I believe it was under threat) they have allowed to sign 5.0.2 again which means you can downgrade your Apple TV 2 and 3 to a 5.0.2 version via iTunes. Who knows how long they will keep the window open but I have downgraded my ATV early this morning. I couldn't post this earlier because I was out all day but I am doing it now.
    Here's how to do it:
    1) Connect your ATV to your computer via a Mini USB (not included with ATV but included with many other electronic devices) - in order for your ATV to appear in iTunes you must FIRST plug the USB cable to your computer and ATV and only THEN plug the power cable.
    2) Download your ipsw restore file from Apple.
    5.0.2 (ATV 2): AppleTV2,1_5.0.2_9B830_Restore.ipsw
    5.0.2 (ATV 3): AppleTV3,1_5.0.2_9B830_Restore.ipsw
    3) In iTunes select yout ATV, hold SHIFT and click on Restore
    4) Find and choose the downloaded IPSW file in the Open Dialog Box and hit Next
    5) As long as Apple still signs that version the Restore process will begin and will take a few minutes to complete.
    Enjoy!
    raadore

  • HT2188 home button no longer working after upgrade to io6 on my iphone4...any ideas to fix this problem

    home button no longer working after upgrade to ios6 software on my iphone4..anything i can do to frix this or apple send me a new device.  phone no good without a home button

    The button's broken.  S**t happens.  Apple will replace your phone.  If in waranty it will be free of charge.  If not, you will pay $149. 
    You can elect to have it repaired at a 3rd party shop near you if you choose, but this will void all warranty if there's any left.

  • White screen appear and my home button does not work

    My ipod home button is not working
    I went online reading for what happens when white screen appears
    I tried it and i realize it might not work because my home button stop working
    should i go to an ishop or will i be able to fix it?
    I hook up my ipod to the computer and its not reading it anymore...
    (4th generation)

    Try:
    - iOS: Not responding or does not turn on
    - Neglect the Restt. When it says place the iPod in recovery mode use one of these programs
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    For MAC or PC       
    The Firmware Umbrella - TinyUmbrella
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer          
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Broken Home button / Will not power on

    Talk about unfortunate.
    My home button recently broke, as in it would not click when pushed. I was able to get by if I pressed firmly enough, thankfully. However, recently, that stopped working, and now the button (or lack thereof) does not work anymore.
    And what's more, my iPod Touch randomly froze and died while having it connected to iTunes -- it's done this several times before, so I figured it wasn't anything new and I am used to it. However, when I hold the power button, the screen does nothing and it will not power on. iTunes doesn't pick it up when plugged in, and I can't do the force-power-off using the Power+Home button combination... because one of those buttons no longer works.
    Is there any chance of a workaround, or is this hopeless and I will need to get a replacement?

    Bleh. After doing research, it looks like I'll have to go in to the store. I don't think fixing the issue where it doesn't turn on will fix anything, since the home button does not work and that is a vital part of the system.
    Thanx. =]

  • I updated my iphone 5 to 6.1.2 and my lock button will not work anymore and idea what i can do to fix this

    i updated my iphone 5 to 6.1.2 and my lock button will not work anymore and idea what i can do to fix this or what i can do to get it fixed

    I'm having similar issues with my phone.  I got my first iPhone recently, only had an iPod touch gen4 for a little over a year.  Updated to 6.0.2 when we got the phone (iPhone 5) a few days before Christmas.  When I got home on the evening of January 11, my phone would not connect the router anymore.  I was able to get it to connect after resetting the phone and the router, updating the router, and manually connecting.  That laste for a few minutes and then wouldn't work anymore.   I live in an area with very limited service, we have a network extender installed to help, and I am barely getting a 3G signal at times.
    My wife's iPad 4, my touchiPod 4, and all of our laptops are working just fine on the router.  When I dropped my kid off at school today, I noticed that I am not even seeing the school network anymore from the parking lot where before I got 3 or 4 bars and could connect to their wifi when I was there.  Today my phone goes back and forth between seeing my home network but not connecting, to not even seeing the network at all even from the same room that the router is in.
    Hope Apple fixes this problem soon..............

  • TA44551 My 1-year ipod nano locked up and would not start overnight. The on/off button will not work and stopped holding charge. No water damage, no fall, nothing unusual. I restored it (twice) but it will still not hold charge and on/off does not work.

    My 1-year ipod nano locked up and would not start overnight. The on/off button will not work and stopped holding charge. No water damage, no fall, nothing unusual. I restored it (twice) but it will still not hold charge and on/off does not work. I tried to restore it again and charged it in three different locations with different cables. etc but nothing. Suggestions?

    - After charging for 1/2 hour or so, does iTunes see the iPod?  If yes, restore the iPod from backup.
    - If no, se if placing the iPod in recovery mode will make it visible so you can restore the iPod.  For recovery mode see:
    iPhone and iPod touch: Unable to update or restore

Maybe you are looking for