-
random intro?
Hi, I have six flash movies. When the user visits the web page I want one of the movies to play. It can be anyone, the more random the better. What is the best way to acheive this?
-
Ninja Rider
just make an array with your movies in.
then randomise a index that goes from 0 to the length of your array and load that movie.
Show me the way to the next whiskeybar ...
-
not great with actionscript, how do I do an array?
-
FlashCLUE.com
code: trace( [1,2,3,4].sort( function(a,b){ return random(3)-1; } )[0] );
-
thanks for the code, but where do I put it? in a blank movie or at the beginning of each of the six movies?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|