gotoAndStop
Top  Previous  Next


Syntax
spritename.gotoAndStop(frame / label)

Arguments
spritename: The name of the Sprite / Movie Clip to be played.
frame: The Frame number or label to which the playhead is sent.

Returns

Nothing.

Description

Action and Sprite Method: Sends the playhead to the specified Frame in a Scene and stops at that Frame.

Sample

onLoad() {
   this.gotoAndStop(16);   // Sprite goes to Frame 16 and stops. 
}


See Also
play(), stop(), gotoAndPlay(), gotoAndStop(), gotoSceneAndPlay(), gotoSceneAndStop(), nextFrameAndPlay(), nextFrameAndStop(), prevFrameAndPlay(), prevFrameAndStop(), skipFrameAndPlay() and skipFrameAndStop().