PDA

View Full Version : can I add frames to an mc I create in actionscript?


seeFresh
09-25-2005, 03:02 PM
If I import 3 jpg's and I want to create a mc that displays them, but all on a different frame, is that possible?

like

//Can I tell this to be on frame 1?
targetMC.createEmptyMovieCLip("holdermc1", 501);
holdermc1.loadMovie("myjpg01.jpg");

//Can I tell this to be on frame 2?
targetMC.createEmptyMovieCLip("holdermc2", 502);
holdermc.loadMovie("myjpg02.jpg");

//Can I tell this to be on frame 3?
targetMC.createEmptyMovieCLip("holdermc3", 503);
holdermc.loadMovie("myjpg03.jpg");


thanks =)

paul frost
09-25-2005, 07:51 PM
Iīve had the same idea as you.... hereīs the problem: you load an image into movieclip1 which is only in frame 1 of the main timeline, you leave frame one for example to see the image that is in movieclip2 in frame 2. if you want to look at image 1 afterwards you will notice that image1 isnīt there anymore if you enter frame 1.

if iīm not mistaken flash just throws dynamically loaded images out of their movieclip as soon as it doesnīt appear in a frame that you enter.

seeFresh
09-27-2005, 08:31 AM
well that's not cool =(