beautypg.com

Timeline.reverseframes() – Adobe Extending Flash Professional CS5 User Manual

Page 512

background image

490

EXTENDING FLASH PROFESSIONAL

Timeline object

Last updated 5/2/2011

Returns
Nothing.

Description
Method; moves the first specified layer before or after the second specified layer.

Example
The following example moves the layer at index 2 to the top (on top of the layer at index 0):

fl.getDocumentDOM().getTimeline().reorderLayer(2, 0);

The following example places the layer at index 3 after the layer at index 5:

fl.getDocumentDOM().getTimeline().reorderLayer(3, 5, false);

timeline.reverseFrames()

Availability
Flash MX 2004.

Usage

timeline.reverseFrames([startFrameIndex [, endFrameIndex]])

Parameters

startFrameIndex

A zero-based index that specifies the first frame at which to start reversing frames. If you omit

startFrameIndex, the method uses the current selection. This parameter is optional.

endFrameIndex

A zero-based index that specifies the first frame at which to stop reversing frames; the range of

frames goes up to, but does not include, endFrameIndex. If you specify only startFrameIndex, endFrameIndex defaults
to the value of startFrameIndex. This parameter is optional.

Returns
Nothing.

Description
Method; reverses a range of frames.

Example
The following example reverses the positions of the currently selected frames:

fl.getDocumentDOM().getTimeline().reverseFrames();

The following example reverses frames from Frame 10 up to, but not including, Frame 15 (remember that index values
are different from frame number values):

fl.getDocumentDOM().getTimeline().reverseFrames(9, 14);

This manual is related to the following products: