_totalframes
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
a = spritename._totalframes

Arguments
spritename is the name of the Sprite or Movie Clip.

Returns
The number of Frames contained within the Sprite / Movie Clip.

Description
Property (read-only): the number of Frames contained within the Sprite / Movie Clip.

This property could be used to create a temperature bar that shows the % complete of download.

The following example uses the _framesloaded property to calculate the % loaded

Sample
a = _framesloaded / _totalframes * 100
;   // a contains % complete of download.

See Also
_framesloaded