Timeline.getselectedlayers(), Timeline.insertblankkeyframe() – Adobe Extending Flash Professional CS5 User Manual
Page 503
481
EXTENDING FLASH PROFESSIONAL
Timeline object
Last updated 5/2/2011
var timeline = fl.getDocumentDOM().getTimeline();
timeline.setSelectedFrames(5,10);
timeline.setSelectedFrames(20,25,false);
var theSelectedFrames = timeline.getSelectedFrames();
fl.trace(theSelectedFrames);
See also
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);
See also
timeline.insertBlankKeyframe()
Availability
Flash MX 2004.
Usage
timeline.insertBlankKeyframe([frameNumIndex])
Parameters
frameNumIndex
A zero-based index that specifies the frame at which to insert the keyframe. If you omit
frameNumIndex, the method uses the current playhead frame number. This parameter is optional.