MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 497

Extending flash
Table of Contents

Advertisement

The following example first stores the array of selected frames in the
savedSelectionList
variable, and then uses the array later in the code to reselect those frames after a command or
user interaction has changed the selection:
var savedSelectionList =
fl.getDocumentDOM().getTimeline().getSelectedFrames();
// Do something that changes the selection.
fl.getDocumentDOM().getTimeline().setSelectedFrames(savedSelectionList);
The following example selects the top layer, Frame 1, up to, but not including, Frame 10,
then adds Frame 12, up to, but not including, Frame 15, on the same layer to the current
selection:
fl.getDocumentDOM().getTimeline().setSelectedFrames([0, 0, 9]);
fl.getDocumentDOM().getTimeline().setSelectedFrames([0, 11, 14], false);
See also
timeline.getSelectedFrames()
timeline.setSelectedLayers()
Availability
Flash MX 2004.
Usage
timeline.setSelectedLayers(index [, bReplaceCurrentSelection])
Parameters
A zero-based index for the layer to select.
index
A Boolean value that, if it is set to
, causes the method
bReplaceCurrentSelection
true
to replace the current selection;
causes the method to extend the current selection. The
false
default value is
. This parameter is optional.
true
Returns
Nothing.
Description
Method; sets the layer to be selected, and also makes the specified layer the current layer.
Selecting a layer also means that all the frames in the layer are selected.
Timeline object
497

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?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents