I was wandering if anyone knows a way to randomly load a flash movie into a specific place of the same dimensions.
I am creating a page where I have a spot for a flash movie, and I would like to randomly load 4-5 different animations into that space that would change randomly by refreshing the page.
Are there any tuts out there or does someone know how to do this?
You have to make an array!
myarray = [“myswf1.swf”, “myswf2.swf”, “myswf3.swf”]
like this.
Now to load 'em use this action:
loadMovie(myarray[Math.floor(Math.random()*myarray.lentgh)], <path>);
This picks a random movie from the array and loads it. They have to be put on the first frame of your movie or ona movieclip between onClipEvent(load){} handlers!