PDA

View Full Version : swap instance script?


adamfinger
08-23-2002, 02:51 PM
Here is the setup.

On the main timline, I want a certain movieclip to remain on the scene until the last frame. On the last frame, I want a different movieclip to replace that. Obviously this generally wouldnt require any effort, but the timeline loops back towards the beginning. I want the new movieclip to remain on the timeline.

I know this sounds complicated, but is there a script that would allow me to have a movieclip swap when the last frame is loaded? And the new movieclip would remain on the stage regardless of the looping action? Thanks.

-Adam

Billy T
08-23-2002, 03:09 PM
make an mc with an instance name of mcHolder

inside that put mc1

on the last frame of your main timeline put

mcHolder.attachMovie("mc2");

this will replace mc1 with mc2

give your second mc a linkage name of mc2

cheers