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
A zero-based index that specifies the end of the selection;
endFrameIndex
is the frame after the last frame in the range to select.
bReplaceCurrentSelection
selected frames to be deselected before the specified frames are selected. The default value is
.
true
An array of three integers, as returned by
selectionList
timeline.getSelectedFrames()
Returns
Nothing.
Description
Method; selects a range of frames in the current layer or sets the selected frames to the
selection array passed into this method.
Example
The following example selects the top layer, Frame 1, up to, but not including, Frame 10; it
then adds Frame 12 up to, but not including, Frame 15 on the same layer to the current
selection (remember that index values are different from frame number values):
fl.getDocumentDOM().getTimeline().setSelectedFrames(0, 9);
fl.getDocumentDOM().getTimeline().setSelectedFrames(11, 14, false);
496
Objects
A zero-based index that specifies the beginning frame to set.
A Boolean value that, if it is set to
.
:
"selLayer"
endFrameIndex
, causes the currently
true
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers