Timeline.getselectedframes(); Timeline.getselectedlayers() - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

timeline.getSelectedFrames()

Availability
Flash MX 2004.
Parameters
None.
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
Output panel:
var timeline = fl.getDocumentDOM().getTimeline();
timeline.setSelectedFrames(5,10);
timeline.setSelectedFrames(20,25,false);
var theSelectedFrames = timeline.getSelectedFrames();
fl.trace(theSelectedFrames);

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
fl.getDocumentDOM().getTimeline().setSelectedLayers(0);
fl.getDocumentDOM().getTimeline().setSelectedLayers(1, false);
var layerArray = fl.getDocumentDOM().getTimeline().getSelectedLayers();
fl.trace(layerArray);
in the Output panel:
1,0
in the
0,5,10,0,20,25
Timeline object
337

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents