MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 484

Extending flash
Table of Contents

Advertisement

Returns
An array containing 3n 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
in
0,5,10,0,20,25
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
in the Output panel:
1,0
fl.getDocumentDOM().getTimeline().setSelectedLayers(0);
fl.getDocumentDOM().getTimeline().setSelectedLayers(1, false);
var layerArray = fl.getDocumentDOM().getTimeline().getSelectedLayers();
fl.trace(layerArray);
484
Objects

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents