_framesloaded
51
_framesloaded
Availability
Flash Lite 1.0.
Usage
my_mc
:_framesloaded
Description
Property (read-only); the number of frames that have been loaded from a dynamically loaded
SWF file. This property is useful for determining whether the contents of a specific frame,
and all the frames before it, have loaded and are available locally in the browser. It is also
useful as a monitor while large SWF files download. For example, you might want to display a
message to users indicating that the SWF file is loading until a specified frame in the SWF file
finishes loading.
Example
The following example uses the
_framesloaded
property to start a SWF file when all the
frames are loaded. If all the frames aren’t loaded, the
_xscale
property of the movie clip
instance
loader
is increased proportionally to create a progress bar.
if (_framesloaded >= _totalframes) {
gotoAndPlay ("Scene 1", "start");
} else {
tellTarget(“loader”) {
_xscale = (_framesloaded/_totalframes)*100;
}
}
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Lite 1 x ActionScript Language Reference...
Page 6: ...6 Contents...
Page 46: ...46 Flash Lite Global Functions...
Page 62: ...62 Flash Lite Properties...
Page 76: ...76 Flash Lite Statements...
Page 110: ...110 Flash Lite Operators...
Page 162: ...162 Index...