public play() : Void
Moves the playhead in the Timeline of the movie clip.
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Use the following ActionScript to play the main Timeline of a SWF file. This ActionScript is for a movie clip button called my_mc on the main Timeline:
stop();
my_mc.onRelease = function() {
this._parent.play();
};
Use the following ActionScript to play the Timeline of a movie clip in a SWF file. This ActionScript is for a button called my_btn on the main Timeline that plays a movie clip called animation_mc:
animation_mc.stop();
my_btn.onRelease = function(){
animation_mc.play();
};
play function, gotoAndPlay (MovieClip.gotoAndPlay method), gotoAndPlay function