Name
MovieClip._currentframe Property — the frame number of the playhead of a clip or movie
Availability
Flash 4 and later
Synopsis
mc._currentframe
Access
Read-only
Description
The integer _currentframe
property represents the
frame number at which the playhead of mc
currently resides. Note that the first frame is 1, not 0; therefore,
_currentframe
ranges from 1 to
mc
._totalframes
.
Example
// Send a playhead back two frames from its current location gotoAndStop(_currentframe - 2);
See Also
MovieClip.gotoAndPlay( )
,
MovieClip.gotoAndStop( )
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.