Adobe Extending Flash Professional CS4 User Manual
Page 486
464
EXTENDING FLASH CS4 PROFESSIONAL
Timeline object
Property summary
The following properties are available for the Timeline object:
Retrieves the specified property’s value for the selected frames.
Returns an XML string that represents the current positions of the
horizontal and vertical guide lines for a timeline (View > Guides > Show
Guides).
Retrieves the specified property’s value for the selected layers.
Retrieves the currently selected frames in an array.
Retrieves the zero-based index values of the currently selected layers.
timeline.insertBlankKeyframe()
Inserts a blank keyframe at the specified frame index; if the index is not
specified, inserts the blank keyframe by using the playhead/selection.
Inserts the specified number of frames at the given frame number.
Inserts a keyframe at the specified frame.
Pastes the range of frames from the clipboard into the specified frames.
Pastes the range of motion frames retrieved by
timeline.copyMotion()
to the Timeline.
Deletes the frame.
Moves the first specified layer before or after the second specified layer.
Reverses a range of frames.
Selects all the frames in the current timeline.
Sets the property of the Frame object for the selected frames.
Replaces the guide lines for the timeline with the information specified.
Sets the specified property on all the selected layers to a specified value.
Selects a range of frames in the current layer or sets the selected frames
to the selection array passed into this method.
Sets the layer to be selected; also makes the specified layer the current
layer.
Shows the layer masking during authoring by locking the mask and
masked layers.
Property
Description
A zero-based index for the frame at the current playhead location.
A zero-based index for the currently active layer.
Read-only; an integer that represents the number of frames in this timeline’s longest layer.
Read-only; an integer that represents the number of layers in the specified timeline.
Read-only; an array of layer objects.
A string that represents the name of the current timeline.
Method
Description