MovieClip.nextFrame()

Availability

Flash Player 5.

Usage

my_mc.nextFrame() : Void

Parameters

None.

Returns

Nothing.

Description

Method; sends the playhead to the next frame and stops it.

You can extend the methods and event handlers of the MovieClip class by creating a subclass. For more information, see "Assigning a class to a movie clip symbol" in Using ActionScript in Flash.

Example

The following example loads content into a SWF file using _framesloaded and nextFrame(). Do not add any code to Frame 1, but add the following ActionScript to Frame 2 of the Timeline:

if (this._framesloaded >= 3) {
   this.nextFrame();
} else {
   this.gotoAndPlay(1);
}

Then, add the following code (and the content you want to load) on Frame 3:

stop();

See also

nextFrame(), MovieClip.prevFrame(), prevFrame()

 

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

Current page: http://livedocs.adobe.com/flash/mx2004/main_7_2/00001526.html