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
and
stop_mc
play_mc
movie clip instance is clicked. Playback resumes when the
stop_mc
clicked.
this.stop_mc.onRelease = function() {
stop();
};
this.play_mc.onRelease = function() {
play();
};
trace("frame 1");
See also
gotoAndPlay function
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
frame in the Timeline for that button, the playhead is sent to the previous frame:
stop();
this.myBtn_btn.onRelease = function(){
prevFrame();
};
88
ActionScript language elements
. The ActionScript stops the SWF file's playback when the
,
gotoAndPlay (MovieClip.gotoAndPlay method)
myBtn_btn
play_mc
and the following ActionScript is placed on a
instance is
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?