User Guide
88 ActionScript language elements
See also
,
parseFloat function
play function
play() : Void
Moves the playhead forward in the Timeline.
Availability: ActionScript 1.0; Flash Player 2
Example
In the following example, there are two movie clip instances on the Stage with the instance
names
stop_mc and play_mc. The ActionScript stops the SWF file's playback when the
stop_mc movie clip instance is clicked. Playback resumes when the play_mc instance is
clicked.
this.stop_mc.onRelease = function() {
stop();
};
this.play_mc.onRelease = function() {
play();
};
trace("frame 1");
See also
gotoAndPlay function, gotoAndPlay (MovieClip.gotoAndPlay method)
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 Player 2
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();
};