_totalframes

Availability

Flash Lite 1.0.

Usage

my_mc:_totalframes

Description

Property (read-only); returns the total number of frames in the my_mc movie clip.

Example

The following code loads mySWF.swf into Level 1, and then 25 frames later, checks to see whether it is loaded:

loadMovieNum("mySWF.swf", 1);

// 25 frames later in the main timeline
if (_level1._framesloaded >= _level1._totalframes) {
    tellTarget("_level1/") {
        gotoAndStop("myLabel");
    }
} else {
    // loop...
}