PDA

View Full Version : Random intro-mc's before flash main movie (mx)?


coala
10-21-2002, 07:14 PM
Hi all pro's!

Do you have a easy way to random one of four small intro-mc's before continuing to the main flash movie in Flash mx? (They should all be in the same .swf file)

Thank you in advance

/coala
:p

Pal3rm02k
10-22-2002, 08:16 PM
you need a movieclip with all the other mc's in it:

create 4 blank frames, put a stop(); action in each.

put a mc on each separate frame.

make sure you give your mc an instance name (here I use myMC)

on the first frame of the main timeline:
------------------------------------------------------------------------------------myMC.gotoAndStop(Math.ceil(Math.random()*2));