beautypg.com

Timeline.selectallframes(), Timeline.setframeproperty() – Adobe Extending Flash Professional CS5 User Manual

Page 513

background image

491

EXTENDING FLASH PROFESSIONAL

Timeline object

Last updated 5/2/2011

timeline.selectAllFrames()

Availability
Flash MX 2004.

Usage

timeline.selectAllFrames()

Parameters
None.

Returns
Nothing.

Description
Method; selects all the frames in the current timeline.

Example
The following example selects all the frames in the current timeline.

fl.getDocumentDOM().getTimeline().selectAllFrames();

timeline.setFrameProperty()

Availability
Flash MX 2004.

Usage

timeline.setFrameProperty(property, value [, startFrameIndex [, endFrameIndex]])

Parameters

property

A string that specifies the name of the property to be modified. For a complete list of properties and values,

see the Property summary for the

Frame object

.

You can’t use this method to set values for read-only properties such as

frame.duration

and

frame.elements

.

value

Specifies the value to which you want to set the property. To determine the appropriate values and type, see the

Property summary for the

Frame object

.

startFrameIndex

A zero-based index that specifies the starting frame number to modify. 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. The range of frames goes up to, but

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

Returns
Nothing.

This manual is related to the following products: