mmorse
04-14-2008, 10:45 PM
I searched this forum and found a thread on showing random flash movies when a page loads. But I can't seem to get it to work. The approach I took was outlined by Blizzard. It seemed simple enough for an actionscript challenged person like me. I placed Blizzard's randomloader movie in a folder with the 2 movies I want to randomly load. I named the movies swf1.swf and swf2.swf like he said to do. I then placed the loader movie on a page. The loader movie has this script:
i = random(2)+1;
loadMovie("swf"+i+".swf", "box_container");
The loader movie shows on the page but it's empty. Neither, sf1.swf nor swf2.swf plays. All I see is an empty background where one or the other movie should play. I'm using Flash CS3 and i saved the loader to flash 8 using actionscript 2.0.
The only thing I did to the original loader movie was change the size and the background color to match the movies I want it to load.
Can Blizzard or anyone point me in the right direction on this?
thanks
-mark
i = random(2)+1;
loadMovie("swf"+i+".swf", "box_container");
The loader movie shows on the page but it's empty. Neither, sf1.swf nor swf2.swf plays. All I see is an empty background where one or the other movie should play. I'm using Flash CS3 and i saved the loader to flash 8 using actionscript 2.0.
The only thing I did to the original loader movie was change the size and the background color to match the movies I want it to load.
Can Blizzard or anyone point me in the right direction on this?
thanks
-mark