ActionScript for Flash MX: The Definitive Guide, Second Edition

ActionScript for Flash MX: The Definitive Guide, 2nd EditionBy Colin Moock
Chapter 18.  ActionScript Language Reference
MovieClip._currentframe Property Flash 4

the frame number of the playhead of a clip or movie read-only

mc._currentframe

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 the playhead backward two frames from its current location this.gotoAndStop(this._currentframe - 2);

See Also

MovieClip.gotoAndPlay( ), MovieClip.gotoAndStop( ), MovieClip._totalframes

    Категории