getBytesTotal()
Top  Previous  Next


SWiSH Player Support
SWF5 or later - Supported Internally

Syntax
spritename.getBytesTotal()

Arguments
None.

Returns
The total size in bytes of the specified target.

Description
Read-only property returns the total bytes in the specified target. When using this method for a root path, a level, or a movie loaded into a sprite, the value returned is the total bytes of the .SWF file.

Sample
onFrame (1
{
    bt = _root.getBytesTotal();
}

// the variable 'bt' will have a value indicating the total number of bytes contained within the root path.