Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Properties > _totalframes | |||
Flash Lite 1.0.
my_mc:_totalframes
Property (read-only); returns the total number of frames in the my_mc movie clip.
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...
}
|
|
|
|