beautypg.com

Adobe Extending Flash Professional CS5 User Manual

Page 486

background image

464

EXTENDING FLASH PROFESSIONAL

Timeline object

Last updated 5/2/2011

timeline.deleteLayer()

Deletes a layer.

timeline.duplicateLayers()

Duplicates the selected layers or specified layers.

timeline.expandFolder()

Expands or collapses the specified folder or folders.

timeline.findLayerIndex()

Finds an array of indexes for the layers with the given name.

timeline.getFrameProperty()

Retrieves the specified property’s value for the selected frames.

timeline.getGuidelines()

Returns an XML string that represents the current positions of the
horizontal and vertical guide lines for a timeline (View > Guides > Show
Guides).

timeline.getLayerProperty()

Retrieves the specified property’s value for the selected layers.

timeline.getSelectedFrames()

Retrieves the currently selected frames in an array.

timeline.getSelectedLayers()

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.

timeline.insertFrames()

Inserts the specified number of frames at the given frame number.

timeline.insertKeyframe()

Inserts a keyframe at the specified frame.

timeline.pasteFrames()

Pastes the range of frames from the clipboard into the specified frames.

timeline.pasteLayers()

Pastes copied layers to the Timeline above the specified layer index.

timeline.pasteMotion()

Pastes the range of motion frames retrieved by

timeline.copyMotion()

to the Timeline.

timeline.removeFrames()

Deletes the frame.

timeline.removeMotionObject()

Removes the motion object created with

timeline.createMotionObject()

, and converts the frame(s) to

static frames.

timeline.reorderLayer()

Moves the first specified layer before or after the second specified layer.

timeline.reverseFrames()

Reverses a range of frames.

timeline.selectAllFrames()

Selects all the frames in the current timeline.

timeline.setFrameProperty()

Sets the property of the Frame object for the selected frames.

timeline.setGuidelines()

Replaces the guide lines for the timeline with the information specified.

timeline.setLayerProperty()

Sets the specified property on all the selected layers to a specified value.

timeline.setSelectedFrames()

Selects a range of frames in the current layer or sets the selected frames
to the selection array passed into this method.

timeline.setSelectedLayers()

Sets the layer to be selected; also makes the specified layer the current
layer.

timeline.showLayerMasking()

Shows the layer masking during authoring by locking the mask and
masked layers.

timeline.startPlayback()

Starts automatic playback of the timeline if it is not currently playing.

timeline.stopPlayback()

Stops autoumatic playback of the timeline if it is currently playing.

Method

Description

This manual is related to the following products: