Tuesday, March 23, 2010

Make a random swf play on my html...

I am looking for a way to have a random swf play on the index
page of my website. I have five products I want to showcase and
have built five different swf files, one for each. I would now like
some code that would randomly load one of the 5 files into the
page, so anyime some one visits the site there will most likely be
a different swf playing. Also, is there a better way to do this.



Thanks

Make a random swf play on my html...
I found this tutorial on Google. If you use Flash, maybe this
will help

you.




http://www.kirupa.com/developer/actionscript/loading_random_movie.htm



Or, you could use an array and a random rotator JavaScript.







--Nancy O.

Alt-Web Design %26amp; Publishing

www.alt-web.com









''Dreameager'' %26lt;webforumsuser@macromedia.com%26gt; wrote in
message

news:fg4u2r$ejm$1@forums.macromedia.com...

%26gt; I am looking for a way to have a random swf play on the
index page of my

%26gt; website. I have five products I want to showcase and
have built five

different

%26gt; swf files, one for each. I would now like some code that
would randomly

load

%26gt; one of the 5 files into the page, so anyime some one
visits the site there

will

%26gt; most likely be a different swf playing. Also, is there a
better way to do

this.

%26gt;

%26gt; Thanks

%26gt;

%26gt;





Make a random swf play on my html...
why dont you just build one swf file that displays all
products in what would apear to be a random order?

No comments:

Post a Comment