Flash Lite 2.x and 3.0 ActionScript Language Reference

play function

play() : Void

Moves the playhead forward in the Timeline.

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)