I have five Flash 4 .swf files separate from my main movie. I know that to load one of them, I need to use an empty movie clip. But is it possible to load any one of the five randomly from that empty movie clip in my main movie?
Thanks so much!![]()
| SitePoint Sponsor |
I have five Flash 4 .swf files separate from my main movie. I know that to load one of them, I need to use an empty movie clip. But is it possible to load any one of the five randomly from that empty movie clip in my main movie?
Thanks so much!![]()
Are you an 80s child?
http://www.80schildren.com




yes, try this...
Math.round(Math.random()*2) returns a random number from 0-4Code:url = "someMovie" + Math.round(Math.random()*4) + ".swf"; loadMovieNum (url, 1);
loadMovieNum loads one of the following swf's into level 1
someMovie0.swf
someMovie1.swf
someMovie2.swf
etc.
PERFECT!![]()
Thanks so much!!![]()
Are you an 80s child?
http://www.80schildren.com
Bookmarks