exciting thread title*
exciting thread title*
- Started
- Last post
- 2 Responses
- spifflink
*couldnt think of one
so i am trying to load a random picture out of a folder of pictures into a MC in flash, how do I make it pick a random picture(and/or swf containing the picture)
thanks
- MX_OnD0
name your pictures 1.jpg, 2.jpg and so on....
set a variable using Math.random to get a random number
use Math.floor to round it down to an integer
then add ".jpg" to the variable
loadMovie("variableGoesHere", level);
- spifflink0
wow! neato! thanks!