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
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(),
_framesloaded
prevFrame()
and
nextFrame()
MovieClip.nextFrame()
.
549
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?