Groups | Blog | Home
all groups > flash (macromedia) > january 2005 >

flash (macromedia) : movie clip presenting random images every time the .swf clip is loaded


oepx
1/24/2005 9:03:52 PM
is there actionscript to make a movie pull random images or is that several
..swf files uploaded to a server that the html random codes draws from. can
somebody explain how i can achieve this effect. http://www.milesaldridge.com/
urami_
1/25/2005 8:41:12 AM


[quoted text, click to view]

Make one movie that is the base and the base load in level 1 random content for the
background.

(assuming you name these movies movie1.swf movie2.swf movie3.swf etc....)
On timeline frame of your base movie :

loadMovieNum("movie"+(Math.ceil(Math.random()*3))+".swf", 1);

Pretty much it


--
Happy New Year and all the best to all of you guys !!!


<urami>
http://www.Flashfugitive.com
</urami>


<web junk free>
http://www.firefox.com
oepx
1/25/2005 3:21:11 PM
urami_
1/26/2005 7:23:10 AM


[quoted text, click to view]

You don't need to do anything in html to load randomly SWF files.
In fact it will be way more tedious than do it with flash .
So ,simply make new flash file , empty , with just the action from
previous post attach to first frame.
Than files you like to load into it randomly name movie1.swf and movie2.swf
and movie3.swf and so on.

loadMovieNum("movie"+(Math.ceil(Math.random()*3))+".swf", 1)

the *3 stand for number of random choices , if you have more movies
just change the number.


--
Happy New Year and all the best to all of you guys !!!


<urami>
http://www.Flashfugitive.com
</urami>


<web junk free>
http://www.firefox.com
AddThis Social Bookmark Button