nextFrame (MovieClip.nextFrame method)

public nextFrame() : Void

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.

Availability: ActionScript 1.0; Flash Player 5

Example

The following example uses _framesloaded and nextFrame()to load content into a SWF file. Do not add any code on Frame 1, but add the following ActionScript on 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 function, prevFrame function, prevFrame (MovieClip.prevFrame method)