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)


Version 8

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/8/main/00001757.html