Name
MovieClip.getBytesTotal( ) Method — check the size of a clip or movie, in bytes
Availability
Flash 5
Synopsis
mc.getBytesTotal( )
Returns
An integer representing the size of mc
, in
bytes. Divide by 1024 to convert to kilobytes.
Description
The getBytesTotal( )
method tells us the size,
in bytes, of a clip instance or the main movie. When invoked on the
main movie, getBytesTotal( )
reports the size of
the entire .swf
. It is normally used in concert
with getBytesLoaded( )
to produce preloaders for
main movies and .swf
files loaded into instances
or levels.
See Also
MovieClip.getBytesLoaded( )
,
MovieClip
._totalframes
Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.