Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-19-2007, 04:06 AM   PM User | #1
tomyknoker
Regular Coder

 
Join Date: Mar 2006
Posts: 459
Thanks: 3
Thanked 0 Times in 0 Posts
tomyknoker is an unknown quantity at this point
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..
tomyknoker is offline   Reply With Quote
Old 03-24-2007, 12:24 AM   PM User | #2
Shirk Deio
New Coder

 
Join Date: Mar 2007
Posts: 33
Thanks: 6
Thanked 0 Times in 0 Posts
Shirk Deio is an unknown quantity at this point
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.
Shirk Deio is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:54 PM.


Advertisement
Log in to turn off these ads.