Help with flash actionscript
Help with flash actionscript
Out of context: Reply #6
- Started
- Last post
- 7 Responses
- joyride0
can just set the function and call it:
randomFrame = function () {
var myRandomFrame:Number = Math.round(Math.random()*15);
trace(myRandomFrame);
gotoAndStop(myRandomFrame);
};
randomFrame();it will happen instantly then. or you can just have the code on frame 1 with a shorter time. then on frame 2-15 have the 15 second set interval