Buttons inside a movieclips won't work...

I have a movieclip that has several buttons inside it. When I use this code:
mc.onRollOver = function()
     // do stuff
The buttons won't work anymore..

Hello there Mr. Ned Murphy,
Is there any other way to make buttons inside a movieclip work?
The scenario of my project is having a panel for control buttons, progress bar, sound buttons(on/off). When the cursor is rollover the panel, it will animate going up to reveal buttons which hidden below, for the shortcut of every scenes.
This is what I got.
control_panel_mc->2 frames w/ stop(); on each->2 layers->1st layer(bottom)panel contains buttons->2nd layer(contains button w/ a "swapdepths very important")
and on the 2nd frame 2nd layer theres no button w/ a swapdepths and on the actionscript I have that code: mc.onRollOut = function{ //do something };
Any other suggestion please...
Thanks and more power,

Similar Messages

  • The home button on my phone won't work sometime

    the home button on my phone won't work sometime, ill press the button and it won't return me to the home screen? why is this?
    the phone has 13 gibs of open memory, is there a reason for this?

    Is it stuck, or just unresponsive?
    Hardware Defect: Home or Power Button
    (Note that I am a representative of the organization for the above link, which is not endorsed by Apple)

  • MovieClip buttons inside a MovieClip button inside another MovieClip button

    I am trying to make a Portfolio of my study abroad experience and can get something right about the movie clip buttons inside each other. I have a button to click on titled "travel" and a window shows up with more movieclip buttons to organize different locations of pictures. I can click on the button to have to slide of pictures but nothing happens. I have the "turnOffAllButtons"  coding and  also have the coding for stay clicked, but I can't get the 3rd set to show up. what am i not doing?
    I don't have any errors or output comments showing up

    I have it working now. what I did, I make a slideshow setup (gotoAndStop(1);) in a specific frame and the code I put in for the next, didnt work.
    this is was I have now, without the "turnOffAllButtons" coding:
    Main Button (actions Layer):
    stop();
    travelButton_mc.buttonMode=true;
    travelButton_mc.addEventListener(MouseEvent.ROLL_OVER, colorizetravelButton);
    function colorizetravelButton(givenEvent:MouseEvent){
      if (givenEvent.currentTarget.currentFrame != 50)
      travelButton_mc.gotoAndPlay(2);
    travelButton_mc.addEventListener(MouseEvent.ROLL_OUT, decolorizetravelButton);
    function decolorizetravelButton(givenEvent:MouseEvent){
      if (givenEvent.currentTarget.currentFrame != 50)
      travelButton_mc.gotoAndPlay(21);
    travelButton_mc.addEventListener(MouseEvent.CLICK, loadtravelLocations);
    function loadtravelLocations(givenEvent:MouseEvent){
      travelButton_mc.gotoAndStop(50);
      travelLocations_mc.gotoAndPlay(1);
    Inside the travelLocations_mc I have currently one button to show a slide of pictures, this is the second layer of buttoncode:
    stop();
    scotlandButton_mc.buttonMode=true;
    scotlandButton_mc.addEventListener(MouseEvent.ROLL_OVER, colorizescotlandButton);
    function colorizescotlandButton(givenEvent:MouseEvent){
      if (givenEvent.currentTarget.currentFrame != 50)
      scotlandButton_mc.gotoAndPlay(2);
    scotlandButton_mc.addEventListener(MouseEvent.ROLL_OUT, decolorizescotlandButton);
    function decolorizescotlandButton(givenEvent:MouseEvent){
      if (givenEvent.currentTarget.currentFrame != 50)
      scotlandButton_mc.gotoAndPlay(21);
    scotlandButton_mc.addEventListener(MouseEvent.CLICK, loadscotlandInfoPage);
    function loadscotlandInfoPage(givenEvent:MouseEvent){
      scotlandButton_mc.gotoAndStop(50);
      scotlandInfoPage_mc.gotoAndPlay(1);
    I turned the alpha up so you can see the mc that loads
    I currently have a keyframe at 60 with a code of stop(); so the travelLocations_mc will still
    does this make sense?

  • Access a button inside a movieclip

    Hey...
    Im pretty new to flash, I have a problem that have taken hours, only not to getting sorted out, so i'll try my luck here...
    I've basicly made a rollover menu which is nested inside a movieclip. the movieclip is put on 1 st. frame on the main timeline and I want the buttons inside the movie clip to take the user to a different frame on the main timeline, but no matter what I do it's just not working...
    here is some of he solutions i have tried to do:
    function work1(e:Event)
    //MovieClip(parent.parent).gotoAndStop("work1")
    //gotoAndStop("work1")
    //this.gotoAndStop("work1")
    //parent(gotoAndStop("work1"))
    //MovieClip(this.parent).gotoAndStop("work1")
    //MovieClip(parent.gotoAndStop("work1"))
    //this(gotoAndStop("work1"))
    //main.gotoAndStop("work1")
    //root.gotoAndStop("work1")
    //MovieClip(root).gotoAndPlay("work1")
    //MovieClip(stage).gotoAndPlay("work1")
    //MovieClip(root.parent.parent).gotoAndStop("work1");
    work1_btn.addEventListener(MouseEvent.CLICK, work1);
    hope someone can help...

    sure, there are a zillion ways, that timeout function was more to demonstrate the problem than offer a valid solution...
    Personally, with what you're doing, here's my first inclination for handling it:
    Just add this bit, dumping that other stuff:
    stage.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(event:MouseEvent):void{
         if (event.target is SimpleButton&&event.target.name!=null){
              gotoAndPlay(event.target.name);
    That assumes you've given those buttons the same name as the frame you want them to go to. In your example, rename that first button as work1, and that code will send you to the frame with that name on click. That code will handle all the buttons, assuming you name the frame and button instances the same (like button work2 would take you to a frame named work2 etc).
    Since it's a stage click handler, it can handle any click. Here's the breakdown:
    //adding a global click listener.
    stage.addEventListener(MouseEvent.CLICK, clickHandler);
    //what to do with the click
    function clickHandler(event:MouseEvent):void{
         //here we're just checking to see what's clicked (from your example, they are SimpleButtons)
         //and then the && means 'and'  we're making sure that button has a name.
         if (event.target is SimpleButton&&event.target.name!=null){
              //goto the frame with the same name as the button
              gotoAndPlay(event.target.name);
    HTH,
    -Ted

  • Email button created in InDesign won't work on Interactive PDF. Anyone know a fix?

    Hello there, I am trying to make a e-mail button work after its .swf file is imported into a new iD document and exported as a interactive PDF. I have tried various things and work around but I can not seem to be able top make it wrong. I ask iD twiter for help and after a conversation with them I was told to try here.
    OS: Windows 7, iD Version 9.2.1 x64
    This is my process (Will include images and document files)
    1. Create simple solid color box object. Add a text title to the box and otline the text.
    2. Group the objects and make it into a button. Add a roll over appearance.
    3. Add "go to URL" action. One sample button URL is: mailto:test@email(dot)com, Second sample URL is: mailto://test@email(dot)com (the forum editor kept making links to this fake emails)
    4. Export iD document to .swf (Settings where default)
        NOTE* Here the .swf open in chrome and the email buttons work fine as a .swf alone
    5. Import the SWF into a new iD file. Export this second iD file to an Interactive PDF (Seetings where default)
    After doing this I click on the email buttons inside the interactive PDF but they dont start my email app (Outlook 2013) However every time I click either button a new empty Google Chrome window opens.
    Here is a dropbox link to the files themselves, the type is outlines so no need to worry for missing fonts. https://www.dropbox.com/sh/fp76buzt98td8fy/4DD6tqImd9
    I hope someone can help me getting this fixed. Http:// Link buttons work fine on interactive PDF's following this process. For soem reason the email ones are the only ones that wont work. I have to use this process because I am working with an interactive PDF that has an animated roll over menue that does not work with ePub so the only way for my project to work the way I want it too is by exporting .swf of the finished file, importing on a new iD file and re-exporting to a interactive PDF.
    It was really hard finding anyhting related to this issue im having. Here is the only similar  issue I could find and it is from 2008! http://forums.adobe.com/thread/324167 I do hope I am the one doing something wrong here and not that Adobe has not fixed this .swf email links issue.
    Thanks for the help!
    -Sebastian

    Alright thanks! Ok this is what happens in my end:
    - The interactive PDF you sent me works fine. The iD file opens fine as well and is exactly the same process so that checks.
    -I exported your iD file to .swf, created a new iD document and imported the exported .swf file from the file you created. I exported this new document to interactive PDF. I open it and again I click the links and only google chrome windows open
    This is the link it probably works fine on your end
    https://www.dropbox.com/s/on5tun0v0eunjhu/buttons%20email%20text%20swf%20imported%20to%20i nteractive%20pdf.pdf
    I think there is something going on in my end. "Google Chrome" or "Flash" might be intersecting email links or something becuase I cannot get these .swf + interactive pdf combo to open the email client not even after I used your iD file, exported .swf, imported it and export again to interactive pdf.
    Again the interactive pdf you sent works fine and when I export my file to interactive pdf it works on my end as well, its only after i export to swf and then I use the file inside iD and export to interactive pdf that it does causes me trouble. I will see what I can do to fix this. At least it was working for you so if its only in my end then its not that bad but it will bugg me forever haha!
    Thanks again for your help!! Sorry to take your time Salah!
    -Sebastian

  • I drop my iPod on the floor and now I only can use the home and power button and the screen won't work

    I Drop my iPod on the floor and now the screen won't work but it looks perfect but when I touch it it doesn't do anything and the home and the power button work so can someone help

    Try the remaining items of:
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - 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 another cable       
    - 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                              

  • Power button on ipod touch won't work?

    The Power button on my ipod touch won't work at all, any suggestions?

    Okay it says here https://selfsolve.apple.com/agreementWarrantyDynamic.do that your warranty has expired, my recomendation is to either clean it out with a needle, or just keep pushing it hoping it will un-stick.
    hope this helped

  • Volume button on the side won't work

    The down volume button on my iPad will not work.  It has not been dropped.  Does anyone have any suggestions for fixing it?

    Bring it in to apple for exchange.  If you're in warranty it will be exchanged for free; if not your phone will be replaced for $149

  • Physical buttons on E440 touchpad won't work after coffee spill: capacitive layer works fine

    Hi, can you help me with my stupid problem?
    I have 2 questions:
    1) Is there a way to enable trackpoint to work with the capacitive layer? I.e. to be able to use it without physically pushing the pad down. Now, as soon as I touch the trackponit, it disables light clicks (touches) of the touchpad, I guess to prevent unintended palm clicks
    2) Is there anything I can do to make the buttons work again? (See the story below.) I have cleaned it all even inside, but there were almost no stains at all anyway, none on chips or cables. And it partially worked just this morning.
    I guess I could soak it in water, then ethanol, and finally dig into rice grains for a week or two as a last resort...but I hope for a more electronics-friendly solution.
    Story:
    I spilled my coffee into the keyboard and touchpad, and even though almost no water got onto the motherboard (a few drops), I cut off the power supply in less than 10 seconds, and I cleaned it all thoroughly (even managed to get inside the touchpad itself and assemble it all back...what a pain), it works weird.
    At first, it registered about 1/10 or 1/20 of physical button presses (depressions of the pad). So technically it somewhat worked. The capacitive (touch) layer worked fine including multitouch. Then I tried to just click on it repeatedly for about 100 times rapidly, and it started to miraculously work 100% fine...for about 30 minutes, then it returned to the 1/20 state again. But as soon as it started to work fine, the multitouch recognition died, so it wouldn't scroll etc. And after returning to the bad state again, multitouch was still dead. Then I tried to reinstall the drivers: multitouch has started to work (so scrolling and gestures are OK now). But the physical buttons appear to be absolutely dead at this moment, it won't register any click/depression at all. The capacitive layer works fine though, so I can still use it as a normal touchpad without physical keys.
    But this renders trackpoint unusable as it requires physical depressions of the touchpad to register clicks.
    Thank you very much!

    hi, calleasto
    sorry to hear about this mishappen. I recognize it, since it happened to me a few years ago, also my daughter pooring thee (not coffee - but the difference is marginal - ) into an external keyboard. I took it apart and cleaned and dried it very carefully, but never got it working again. This was an external keyboard.
    a similar failure occurred to other people with they laptop keyboards (and to me, without "using" any liquid). I presume - without knowing really the interiors of the laptop keyboards - that (1) they are read out in a kind of matrix (sensitive bars arranged in rows and (almost) columns corresponding to keys), which needs two layers of contact strips; and that (2) the layers are separated by plastic sheets.
    Your diagnostics seems to imply that
    1) there are still bad contacts (might be liquid where it shouldn't be);
    2) the contact point has shifted ;
    The latter could perhaps be due to liquid shifting the pressure away from the point where it should be applied.
    What i would do:
    Give the keyboard much time for drying - perhaps by removing the keys again. But there is always the chance that the temperature of the coffee, and the residues are causing troubles and might cause some keys not to function properly.
    I think (i am not sure !!) you have a "unibody": i think it is "unique " in the sense that it has no screws (except at the bottom) - and no Firewire outlet. I have never opened my MB, but the only way i see for opening it is from the bottom (there are 4 screws at mine) - but i do not know whether it is advisable to open it. I would check via Phone with Apple before doing anything myself.
    Hope this helps.
    Thomas

  • I cannot print with firefox anymore also found the OK button on tools/options won't work

    ''duplicate, locking - https://support.mozilla.com/en-US/questions/844269''
    Besides not printing, the OK button on my Tools settings no longer works. That just started, too.

    The print button, control p or any other way to get to the print screen do not work. There is no response. I can print from sites like MapQuest that have their own print button.

  • My ipod touch won't turn on....I've tried to hold the home button as well as the power button, but it still won't work.How do I fix it?

    Please can someone help me fix my ipod :/ Ive tried holding the home button as well as the power button but it did not work.PLEASE HELP ME!!!!!!!!!!!

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - 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       

  • Control the Timeline, from a button inside a movieclip.

    First off, I have a movie clip called mc_instructions.  Inside the movie clip, about 940 frames into it, a button appears called btn_ready.  I need this button to bring me to frame 3 on the main timeline when clicked on.
    How can I do this in ActionScript 3.0?
    I can't figure it out!
    Thanks
    Don

    on frame 940:
    btn_ready.addEventListener(MouseEvent.CLICK,f);
    function f(e:Event):void{
    gotoAndStop(3);

  • How to access a button inside a MovieClip which is the source of a scrollpane?

    Hi Everyone,
    I have created a crollpane in my flash file and the source of the scrollpane is a movieclip which contains a buttons.
    Now I want to add a gotoAndStop function to that button to link to a frame on the main timeline.
    Could anyone tell me what is the right as3 code to access this button?
    Thank you!

    Hi Ned,
    I'm still getting a error message. This is my code:
    MovieClip(spane8.content).AppsOptimizerBtn.addEventListener(MouseEvent.CLICK, gotoApp1);
    function gotoApp1(event:MouseEvent):void
              gotoAndStop(21);
    This is the error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at MyAssests_Scene2_fla::MainTimeline/frame11()
              at flash.display::MovieClip/gotoAndStop()
              at MyAssests_Scene2_fla::MainTimeline/gotoAppStore()
    Frame 11 is where my scrollpane is.
    "gotoAppStore" is a function that I used at frame 1 to link to frame 11.
    Any idea what is wrong?

  • IPhone buttons with website hyperlinks won't work

    Hi, I have done a few dps projects for iPad and Android tablets but am starting a new project for iPhone users.
    The way I have set up buttons to link to websites before does not seem to be working. I can see the button but it doesnt do anything... I have tested the same file on the ipad and it works fine.
    I know I am probably being stupid but does anyone have any hints?
    thanks
    Stuart

    Hi Bob,
    I usually just create a button under buttons and forms.
    Put in in a 'go to URL 'action on release or tap.
    and put in the url.
    This works on adobe viewer on the iPAD and desktop but wont work on my iphone's adobe viewer.
    thanks
    Stuart

  • My itouch is frozen on the black screen with the apple icon, I've done the whole reset holding the power and home button together but still won't work. Can someone please help!?

    So I've done the whole hold the power and home button, it resets but still stays frozen on the black screen with the apple icon

    Did you try to reset by holding the sleep and home button until the Apple logo comes back again?
    Does it work with headphones plugged in? If yes, did you try to play music in headphone mode, then unplug during playback and start playing music again after that?
    If you toggle the volume, can you see the slider moving up or down?

Maybe you are looking for