User Guide
76 ActionScript language elements
prevFrame function
prevFrame() : Void
Sends the playhead to the previous frame. If the current frame is Frame 1, the playhead does
not move.
Availability: ActionScript 1.0; Flash Lite 1.0
Example
When the user clicks a button called
myBtn_btn and the following ActionScript is placed on a
frame in the Timeline for that button, the playhead is sent to the previous frame:
stop();
this.myBtn_btn.onRelease = function(){
prevFrame();
};
See also
nextFrame function, prevFrame (MovieClip.prevFrame method)
prevScene function
prevScene() : Void
Sends the playhead to Frame 1 of the previous scene.
Availability: ActionScript 1.0; Flash Lite 1.0
See also
nextScene function
random function
random(value) : Number
Deprecated since Flash Player 5. This function was deprecated in favor of Math.random().
Returns a random integer between 0 and one less than the integer specified in the value
parameter.
Availability: ActionScript 1.0; Flash Lite 1.1
Parameters
value:Number - An integer.