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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access