Log in

View Full Version : Showing random flash movies. Paging Blizzard



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

djr33
04-14-2008, 10:51 PM
Blizzard is a very helpful and knowledgeable member, but everyone here will help if they have the time and know the answer, and I know Blizzard is busy (and already spends a lot of time here).
Anyway, have patience and you'll get an answer.
Unfortunately I don't know it.

I think you'd need to post a bit more info, though, like either a link to a previous discussion you mentioned, or some code.

Medyman
04-14-2008, 10:52 PM
Hi Mark,

Unfortunately, my friend Blizzard is MIA at the moment. He's busy with bigger and better things, I'm sure.

I'm not familiar with his randomloader movie. If you can point out which post of his you're using as a guide, I'll be happy to take a look and see what could be the problem.

mmorse
04-14-2008, 10:54 PM
Thanks for the reply but I figured it out. The embed code is in an include file so I had to adjust the path to the movies in the loader movie. Once I did that, the loader movie worked as advertised.

Thanks Blizzard for the code!

-mark

mmorse
04-14-2008, 11:01 PM
Thanks guys. I'm new to this forum and I do very little Flash. Consequently what I now about it would fit in a thimble. Nice to find a place where people are willing to help out if they can.

-mark