I have created three layers in Flash all on one frame. One layer for
actionscript and the other two each have a movie clip. One called Gary_mc the
other Paul_mc. I plan to add other movie clips at a later date.
I want it, so whenever the swf file is loaded a random movie clip is played.
And once that clip is finished another movie clip is played afterwards again at
random.
I have attached my best efforts, however it is still not working.
Thanks for any help
clips = ["Paul_mc", "Gary_mc"]
randMC = clips.splice(random(clips.length),1);
if (clips.length){
randMC = clips.splice(random(clips.length),1);
}
clips = ["Paul_mc", "Gary_mc"];
index=Math.floor(Math.random()*clips.length);
clips[index].play();
clips[1-index]._visible =false;
Thanks for replying but this still isn't working. Is it because all the layers are on the first frame?
Do I but the script in every movieclip?