timeline.setLayerProperty()
Availability
Flash MX 2004.
Usage
timeline.setLayerProperty(property, value [, layersToChange])
Parameters
A string that specifies the property to set. For a list of properties, see
property
on page
208.
The value to which you want to set the property. Use the same type of value you would
value
use when setting the property on the Layer object.
layersToChange
,
"selected"
"all"
This parameter is optional.
Returns
Nothing.
Description
Method; sets the specified property on all the selected layers to a specified value.
Example
The following example makes the selected layer(s) invisible:
fl.getDocumentDOM().getTimeline().setLayerProperty("visible", false);
The following example sets the name of the selected layer(s) to
fl.getDocumentDOM().getTimeline().setLayerProperty("name", "selLayer");
timeline.setSelectedFrames()
Availability
Flash MX 2004.
Usage
timeline.setSelectedFrames(startFrameIndex, endFrameIndex [,
bReplaceCurrentSelection])
timeline.setSelectedFrames(selectionList [, bReplaceCurrentSelection])
Parameters
startFrameIndex
endFrameIndex
the frame after the last frame in the range to select.
346
Chapter 3: Objects
A string that identifies which layers should be modified. Acceptable values are
, and
. The default value is
"others"
A zero-based index that specifies the beginning frame to set.
A zero-based index that specifies the end of the selection;
if you omit this parameter.
"selected"
:
"selLayer"
endFrameIndex
"Layer object"
is
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?