beautypg.com

Timeline.duplicatelayers(), Timeline.expandfolder() – Adobe Extending Flash Professional CS5 User Manual

Page 498

background image

476

EXTENDING FLASH PROFESSIONAL

Timeline object

Last updated 5/2/2011

timeline.duplicateLayers()

Availability
Flash CS5.5 Professional.

Usage

timeline.duplicateLayers([startLayerIndex [, endLayerIndex]])

Parameters

startLayerIndex

Optional. A zero-based index that specifies the beginning of the range of layers to copy. It also

specifies the layer above which the layers on the clipboard are pasted. If you omit

startLayerIndex

, the method uses

the current layer selection.

endLayerIndex

Optional. A zero-based index that specifies the layer at which to stop copying. The range of layers to

copy goes up to and including

endLayerIndex

. If you specify only

startLayerIndex

, then

endLayerIndex

defaults

to the value of

startLayerIndex

.

Returns
Nothing.

Description
Method; Duplicates the layers that are currently selected in the Timeline, or the layers in the specified range. Optional
arguments can be provided in order to specify a layer or range of layers to duplicate.

Example
The following example duplicates the layer currently selected in the Timeline:

fl.getDocumentDOM().getTimeline().duplicateLayers();

The following example duplicates the layers from index 2 to index 7 above layer index 2:

fl.getDocumentDOM().getTimeline().duplicatedLayers(2,7);

See also

timeline.copyLayers()

,

timeline.cutLayers()

,

timeline.pasteLayers()

timeline.expandFolder()

Availability
Flash MX 2004.

Usage

timeline.expandFolder(bExpand [, bRecurseNestedParents [, index]])

Parameters

bExpand

A Boolean value that, if set to

true

, causes the method to expand the folder;

false

causes the method to

collapse the folder.

This manual is related to the following products: