Trying to associate buttons with a moving moving clip

what i have is a tween on a movie clip of a popcorn kernel on one layer and a tween on a button on another layer to follow the movie clip. i want to be able to roll over the kernel and make it "pop". i changed my over on the button to popped corn (this works) but i want it to stay popped for the rest of the tween. this is where i need help.

Give your movieclip symbol an instance name, "kernel" will be fine - instance names are assigned in the Properties panel where it says <Instance Name>), so select the movieclip on the stage and assign it the name.  Do this for every keyframe for that movieclip. 
Then create an actions layer and place an empty keyframe on it in the same frame as the first frame of the tween. Select that frame and enter the following code into the Actions panel...
kernel.onRollOver = function(){
    kernel.gotoAndStop("popped");
where you will have a frame label of "popped" placed inside the kernel movieclip for the frame where the popped corn image is.
Here is a link to a working example I just made for you saved as a Flash 8 file.
http://www.nedwebs.com/Flash/AS2_poppedcorn.fla

Similar Messages

  • Hi apple user. I have lost all iPad safari bookmarks. Tried hold home button with sleep button but it doesn't get back my safari bookmarks. I also have reset without erasing my iPad data but still doesn't work. Help me get back my safari iPad bookmarks.

    Hi, I have lost all iPad safari bookmarks. Have tried reset without erasing data and hold home and sleep button together but when go to safari all safari bookmarks still lost. Is there any case help me get back my iPad safari bookmarks ? Currently my safari is hanged, can't surf webs or anything. I saw the safari tab on iCloud is on, but I don't know using iCloud. Please help me get back my iPad safari bookmarks. I have contact Apple but could not set chat session. I have my Apple ID registered same with iCloud, also same during the time I have all iPad safari bookmarks lost. My iPad never synced on computer since I bought it with set at local store. Please help me get my iPad safari bookmarks back, thanks.

    Hi, I quitted Safari and press and hold the Home and Sleep buttons silmutaneously unti the Ipad turn off and on with the logo Apple appears but it has hanged on and fixed to the point. I do it again hold the Home and Sleep buttons silmutaneously and the Ipad turn off and on again with the Apple logo but it still is hanged on the same point. I have do it a few more time, it still hanged to the same point for few hours with no change (like picture):
    I think my Ipad is fault now. I guess I must connect it to the computer with itune, or something. So my case is this: at the moment everytime I hold the Home and Sleep buttons the Ipad always off and reappear with the Apple logo and be hanged on (like the pic), and I need restoring my Ipad Safari bookmarks... so I guess I need using Itune or something to get back the Ipad then using Icloud or blah. Please guide me for the step, Im not sure if connect to PC, if any that my Ipad data would lost, or is there anyway that I also can get back Ipad Safari Bookmarks after connecting to PC, also the how using Icloud. There is no Apple store or service store in my country so I think I must do it my self. Feel free to share your guide, thanks.

  • Trying to associate LR5 with flickr fails

    Hi,
    When attempting to associate LR 5 with flickr it will not complete the process as a web page appears as below
    The webpage cannot be displayed
    Most likely cause:
    Some content or files on this webpage require a program that you don't have installed
    Help Please

    Give your movieclip symbol an instance name, "kernel" will be fine - instance names are assigned in the Properties panel where it says <Instance Name>), so select the movieclip on the stage and assign it the name.  Do this for every keyframe for that movieclip. 
    Then create an actions layer and place an empty keyframe on it in the same frame as the first frame of the tween. Select that frame and enter the following code into the Actions panel...
    kernel.onRollOver = function(){
        kernel.gotoAndStop("popped");
    where you will have a frame label of "popped" placed inside the kernel movieclip for the frame where the popped corn image is.
    Here is a link to a working example I just made for you saved as a Flash 8 file.
    http://www.nedwebs.com/Flash/AS2_poppedcorn.fla

  • [VB CS5] Adding buttons with page hyperlinks (hyperlinkpagedestinations)

    Hi people.
    I'm trying to add buttons with a script that link to pages.
    I have got this far but the documentation is sparse and i can't find a solution.
    My code so far
    REM====Initiliasing
    Set myInDesign = CreateObject("InDesign.Application")
    Set myDocument = myInDesign.Documents.Item(1)
    Set myPage = myDocument.Pages.Item(1)
    REM====Adding the button
    Set but = myDocument.Pages.Item(1).Buttons.Add
    but.GeometricBounds = Array(0,0,25,25)
    but.select()
    REM==== Adding the hyperlink
    set my_hyperlink = myDocument.hyperlinkPageDestinations.add(myDocument.Pages.Item(232))
    Creates the button ok, seems to create the hyperlink ok. That hyperlink should go to page 232.
    How do you add the hyperlink to the button so the button goes to page 232 when clicked?

    Ok i'm just going to go ahead and answer my own question.
    Seems you can't add it to a button but can add the hyperlink to a rectangle and it works.
    So the correct code looks like this
    Set myInDesign = CreateObject("InDesign.Application")
    Set myDocument = myInDesign.Documents.Item(1)
    Set myPage = myDocument.Pages.Item(1)
    Set oImageRect = myDocument.Pages.Item(1).Rectangles.add
    oImageRect.GeometricBounds = Array(50,0,25,25)
    set my_hyperlinkPAGE=myDocument.hyperlinkPageDestinations.add(myDocument.Pages.Item(5))
    Set my_hyperlinkSource = myDocument.HyperlinkPageItemSources.Add(oImageRect)
    set myHyperlink = myDocument.Hyperlinks.Add(my_hyperlinkSource, my_hyperlinkPAGE)
    Voila, goes to page 5!

  • Associate iphone with apple id

    please help i brought iphone 4s off my mate but when im trying to associate iphone with apple id it it says i have to wait 90 days as the iphone 4s is associated with another apple id please help as i cant use facetime or imessage with iphone 4s but i can if i do it with email address please help thanks

    You'll have to wait. The Apple ID associated with it can not be changed more often than once every 90 days.

  • In trying to share music with multiple user accounts on one comp, I quit itunes, located my itunes media folder, moved it to a publicly accessible location. Problem is it didn't work and now I can't get it all back to the way it was.

    In trying to share music with multiple users on one computer, I followed the directions on "iTunes:How to share music between different accounts on a single computer" (http://support.apple.com/kb/ht1203). I did something wrong because i lost iTunes
    Tried to put files back, but it is not the same. Plugged in my ipod and it is not recognizing my computer.
    Can someone tell me where iTunes should be, and what sub files should be included with it. Thanks!

    If you are seeing the "Connect to iTunes" logo, then your device is in Recovery Mode, and you will need to restore it:
    If you can't update or restore your iOS device
    iOS: Back up and restore your iOS device with iCloud or iTunes
    Cheers,
    GB

  • How do I import an iPhoto Library  (V.7.1.5) created on my old MacBook (10. 6.8) into my new Macbook pro (10.9.1) running iPhoto 9.5.1? I tried copying onto memory stick and moving to new mac, but new iPhoto doesn't recognise the library.

    How do I import an iPhoto Library  (V.7.1.5) created on my old MacBook (10. 6.8) into my new Macbook pro (10.9.1) running iPhoto 9.5.1? I tried copying onto memory stick and moving to new mac, but new iPhoto doesn't recognise the library.

    So what exactly did you copy over? If it's a 12 gig iPhoto Library then it sounds like the files are there. Perhaps the copy went wrong along the way.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • I am trying to home share with my sister. I have it down to where I can copy the songs, but I just don't have the "import" button. So it won't allow me to do anything with the songs from her computer. What should I do now?

    I am trying to home share with my sister. I have it down to where I can copy all the songs I want, but it won't allow me to import them because my iTunes doesn't show the "import" button at the bottom. So what do I do now?

    I have reinstalled the drivers. I watched it install the realtec and cirrus drivers. Hovering the mouse over the speaker icon says 'speakers: HP'. They are actually 'Creative'. 'Properties' indicates 'IDT High Definition CODEC' and 'This device is working correctly'.
    Driver details gives 'c:\Windows\system32\drivers\dmk.sys'.
    There is still no sound, although the little level meter on the control shows a green bar rising and falling.
    Obviously, it thinks it's working, but there's no connection to the speakers. They're not muted, either. I checked that too.
    Any other ideas?
    Thanks.

  • I tried updating my iPhone3g through itunes. Now i'm stuck in recovery mode and i've EVERYTHING even websites and such but nothing worked out! I've also tried restarting and fiddling with the home button but nothing still worked. Please help!

    I tried updating my iPhone3g through itunes. Now i'm stuck in recovery mode and i've EVERYTHING even websites and such but nothing worked out! I've also tried restarting and fiddling with the home button but nothing still worked. Please help! What should I do??

    Well, if you've indeed tried EVERYTHING, then you'll need to bring your phone to Apple for evaluation.

  • Keyboard viewer on my iMac (running Snow Leopard) recently has lost small size. Green " " button is just moving big keyboard size up. I would appreciate  a hint how to fix it. Alex

    Keyboard viewer on my iMac (running Snow Leopard) recently has lost small size. Green "+" button is just moving big keyboard size up. I would appreciate  a hint how to fix the problem. Alex

    You can resize the keyboard window, positioning the mouse pointer at the edge of the window, clicking and dragging to the desired size.

  • My classic has come up with a sreen which 5 lins of text (in large font) Line 1  says 5 in 1 line 2 sdrampass L3 chksum any ideas I've tried the MENU   CENTRE BUTTON with no joy HELP

    My classic has come up with a screen which has 5 lines of text (in large font) Line 1 says 5 in 1 Line 2 sdrampass L3 chksum Any ideas ? I've tried the MENU + CENTRE BUTTON with no joy HELP

    Hi starbugdriver,
    I recommend trying the iPod classic troubleshooting assistant here:
    iPod classic Troubleshooting Assistant
    http://www.apple.com/support/ipod/five_rs/classic/
    Have a good one!
    - Ari

  • I'm trying to associate my iphone serial num with my apple profile, but the system say that the number is not good !

    I'm trying to associate my iphone serial num with my apple profile, but the system say that the number is not good !

    it is correct in this link;
    but in the https://supportprofile.apple.com/PramAddRegisterProduct.do
    the message indicate the (same) number is not valide

  • My iphone has developed sticky buttons with voice overide. I have tried restoring the phone to no avail. Please help!

    my iphone developed sticky buttons with voice overide. I tried to restore but that did not help. What should I do to get the phone to work again?

    If it is under warranty contact apple to get it repaired.
    http://expresslane.apple.com

  • How to associate a button with the selection/unselection of a JTable?

    hi,
    how to associate a button with JTable in this manna? i want to disable a button once there is no selection in the JTable, and enable the button when there is a selection. to associate the selection it is easy: just make an eventAction for the button on the click in the JTable and check whether there is a selection. but how to do this with the unselection? hope anyone can give me any hint. thanx!

    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test extends JFrame {
        String[] head = {"One","Two","Three"};
        String[][] data = {{"1-1","1-2","1-3"},{"2-1","2-2","2-3"},{"3-1","3-2","3-3"}};
        JTable jt = new JTable(data,head);
        public Test() {
         setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
         Container content = getContentPane();
         content.add(new JScrollPane(jt));
         jt.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
             public void valueChanged(ListSelectionEvent lse) {
              if (lse.getValueIsAdjusting()) return;
              if (jt.getSelectionModel().isSelectionEmpty()) {
                  System.out.println("Nothing Selected");
              } else {
                  System.out.println("Something Selected");
         setSize(500,500);
         show();
        public static void main( String args[] ) { new Test(); }
    }

  • STO with moving average price & with out moving average price

    Hi,
    i have two questions.
    1) I have created STO and issued the material with 351 movement type, after issuing material accounting documents will be with moving average price from issuing plant.
    what is the other process to issue with out moving average price ,the price must take as per in PO(sto).
    2) why we will use STO why cont we use 301 movement type with one step transfer.
    Pls help
    Regards
    Sunil

    Hi Sunil,
    1) the 351 movement type uses always the price from the material master, you can't change it
    2) I don't really understand your question. You need advise when using STO and when 301?
    Attila

Maybe you are looking for