ActionScript 2.0 Language Reference |
|
|
|
| ActionScript language elements > Global Functions > play function | |||
play() : Void
Moves the playhead forward in the Timeline.
Availability: ActionScript 1.0; Flash Player 2
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");
gotoAndPlay function, gotoAndPlay (MovieClip.gotoAndPlay method)
|
|
|
|