random frame in mc
random frame in mc
- Started
- Last post
- 5 Responses
- Dno
Hi All,
I am looking for some script that i can put on the first frame of a 5 frame movie clip that will make the movieclip goto and stop on a random frame of that movie clip.
This will need to go into five movieclips on the stage....
Anyone know?
Thanks in anticipation
D
;)
- rson0
var frameNum:Number = 20;
var randomNum:Number = Math.floor(Math.random() * (max - min + frameNum)) + min;gotoAndPlay(randomNum);
- rson0
sorry var frameNum:Number = 5;
- Dno0
cheers rson - just drop that on the first frame of the mc's timeline?
right?
- rson0
yeah. the syntax may be off though ;)
- Dno0
cheers mate - yeh still trying to get it working ;)
but will get it soon I'm sure