MovieClip._currentframe Property

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By 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



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net