random movie loading
I've got this code to load a random flash movie but it doens't seem to work - here's the code:
filename = ["panorama.swf", "panorama2.swf", "panorama3.swf"];
path = "http://www.mysite.com/panorama/";
i = filename.length;
k = Math.floor(Math.random()*i);
I have created a movie called rnd.swf that has this actionscript in the first keyframe.
Can anyone help or does anyone have any better ideas for loading a random movie?