
484
Objects
Returns
An array containing 3
n
integers, where
n
is the number of selected regions. The first integer in
each group is the layer index, the second integer is the start frame of the beginning of the
selection, and the third integer specifies the ending frame of that selection range. The ending
frame is not included in the selection.
Description
Method; retrieves the currently selected frames in an array.
Example
With the top layer being the current layer, the following example displays
0,5,10,0,20,25
in
the Output panel:
var timeline = fl.getDocumentDOM().getTimeline();
timeline.setSelectedFrames(5,10);
timeline.setSelectedFrames(20,25,false);
var theSelectedFrames = timeline.getSelectedFrames();
fl.trace(theSelectedFrames);
See also
timeline.setSelectedFrames()
timeline.getSelectedLayers()
Availability
Flash MX 2004.
Parameters
None.
Returns
An array of the zero-based index values of the selected layers.
Description
Method; gets the zero-based index values of the currently selected layers.
Example
The following example displays
1,0
in the Output panel:
fl.getDocumentDOM().getTimeline().setSelectedLayers(0);
fl.getDocumentDOM().getTimeline().setSelectedLayers(1, false);
var layerArray = fl.getDocumentDOM().getTimeline().getSelectedLayers();
fl.trace(layerArray);
Содержание FLASH 8-EXTENDING FLASH
Страница 1: ...Extending Flash...
Страница 38: ...38 Top Level Functions and Methods...
Страница 532: ...532 Objects...
Страница 554: ...554 C Level Extensibility...