Random Funtion Flash
Random Funtion Flash
- Started
- Last post
- 5 Responses
- ********
Its been a while since i dove into flash AS, but i got FLA MX , and I want an action on the first frame to run a random # and based on the result go to a certain scene , anyone got something worth a look .... thanks mang
- spiralstarez0
Math.random(the number of scenes);
- unfittoprint0
#1: don't use scenes; use frames instead
#2
frame = Math.ceil(Math.random()*this._to...
gotoAndStop(frame);
- ********0
the world is a better place cus of NT, thanks gents
- caseyc0
Just to add... If you want to use string markers (Labels, Scenes, etc) you can do something liek dis:
myLabels = ["One","Too","Tree"];
theFrame = myLabels[random(myLabels.length...
gotoAndStop(theFrame);Cheers.
- ********0
i love things