Movie Loading Randomly inside Movie Clip

If anyone could help me with this I would be very greatful… here’s the problem :

I want to load different movie files into one movie file randomly, all the movie files being loaded would be in the same layer, so after they are loaded, and have played, the next file would open, and so on… If anyone has any idea for a script please help me…

thx

are you going to load them after a button is pressed? After a certain movie option? How? When?

in any case… here’s the basic part of your code…



mynumber=math.floor(Math.Random()*5)+1; //will yield numbers
//between 1 and 5

loadmovie("mc"+mynumber, mynumber)


this assumes that you have movie clips named
mc1
mc2
mc3
mc4
mc5

if you find that “mc” + mynumber is not working for you, look into the eval command.

Good luck.