Timeline object
477
Example
The following example converts the shape in the first frame up to, but not including, Frame
10 to a graphic symbol instance and sets the
frame.tweenType
to
motion
(remember that
index values are different from frame number values):
fl.getDocumentDOM().getTimeline().createMotionTween(0, 9);
timeline.currentFrame
Availability
Flash MX 2004.
Usage
timeline.currentFrame
Description
Property; the zero-based index for the frame at the current playhead location.
Example
The following example sets the playhead of the current timeline to Frame 10 (remember that
index values are different from frame number values):
fl.getDocumentDOM().getTimeline().currentFrame = 9;
The following example stores the value of the current playhead location in the
curFrame
variable:
var curFrame = fl.getDocumentDOM().getTimeline().currentFrame;
timeline.currentLayer
Availability
Flash MX 2004.
Usage
timeline.currentLayer
Description
Property; the zero-based index for the currently active layer. A value of 0 specifies the top
layer, a value of 1 specifies the layer below it, and so on.
Содержание FLASH 8-EXTENDING FLASH
Страница 1: ...Extending Flash...
Страница 38: ...38 Top Level Functions and Methods...
Страница 532: ...532 Objects...
Страница 554: ...554 C Level Extensibility...