This is really quick and dirty, but try this:
Name all of your swfs with the same name plus a number. (ex.
movie1.swf, movie2.swf, movie3.swf, etc.)
Create another movie with one frame. Put this actionscript in the
frame:
var basename = "movie";
var totalmovies = 3;
var movietoload = basename +
Math.ceil((Math.random()*totalmovies))+".swf";
_root.loadMovie(movietoload);
Set basename equal to the basename of the swf files you're going to
load (in this example "movie") and set totalmovies equal to the number
of movies you have that can be loaded randomly.
That should do the trick and since it relies on the Flash player rather
than the browser, it'll be more cross-browser compatible.
|