Random movie play

i am making a screen saver and there are 5 different movie clips that i wanted to play inside the main screen saver. i was wondering if it was possible to have the 5 movie clips play randomly? thank you


Hi Ryan,


Place a blank first frame in your movie clips with just a stop() action. Place instances of the movie clips onstage, named in increments 0 - 4 (movieClip0, movieClip1… etc)

On the last frame of each movie clip and also at the point in the main movie that you want have the random 5 clips play, insert the following:

_root.name = random(5);
_root[“movieClip” + _root.name].play();

On the frame following that code just in the main movie:


That’s just one idea. Good luck.