Name
MovieClip._totalframes Property — the total number of frames in a clip or movie timeline
Availability
Flash 4 and later
Synopsis
mc._totalframes
Access
Read-only
Description
The integer _totalframes
property represents the
number of frames in mc
’s timeline,
where mc
is a movie clip or main movie. A
new clip or main movie always has a _totalframes
of 1. But if the contents of a clip are unloaded via
unloadMovie( )
, _totalframes
becomes 0. It may also be
momentarily while the current clip is unloaded before a new clip is
loaded during a loadMovie( )
operation over a
slow connection. The _totalframes
property is most
often used along with _frameloaded
to create
preloaders as shown in the entry for
MovieClip._framesloaded
.
See Also
MovieClip
._framesloaded
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.