Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Posts
    459
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Simple Variable Question

    I have 30 frames on my timeline and am wondering how when I get to frame 15 say I can load an image from a folder, and then at 25 load another image into the same MC?
    Last edited by tomyknoker; 03-19-2007 at 04:21 AM.

  • #2
    New Coder
    Join Date
    Mar 2007
    Posts
    33
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Alright, here's what you do.

    Create a new movieclip that's empty, and export it for actionacript (right click, Linkage...). Also, the "Linkage" for the MC you want should be "my_mc."

    Create a new layer called actions. Create a new keyframe in frame 15 and type the following code into the Actions - Frame thing:

    Code:
    _root.attachMovie("empty", "MCs",1000);
    MCs.attachMovie("my_mc", "my_mc",10000)
    And in frame 25, keyframe:

    Code:
    MCs.attachMovie("mySecond_mc","mySecond_mc",10000)
    Something like that. Obviously "mySecond_mc" is the second movieclip to be attached.

    And, if you wanted an image, import the image to the library (file > import) and do the same linkage.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •