Adobe Extending Flash Professional CS4 Manuel d'utilisateur Page 511

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 560
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 510
489
EXTENDING FLASH CS4 PROFESSIONAL
Timeline object
Returns
Nothing.
Description
Method; selects a range of frames in the current layer or sets the selected frames to the selection array passed into this
method.
Example
The following examples show two ways to select the top layer, Frame 1, up to but not including Frame 10, and then to
add Frame 12 up to but not including Frame 15 on the same layer to the current selection (remember that index values
are different from frame number values):
fl.getDocumentDOM().getTimeline().setSelectedFrames(0, 9);
fl.getDocumentDOM().getTimeline().setSelectedFrames(11, 14, false);
fl.getDocumentDOM().getTimeline().setSelectedFrames([0, 0, 9]);
fl.getDocumentDOM().getTimeline().setSelectedFrames([0, 11, 14], false);
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);
See also
timeline.getSelectedFrames()
timeline.setSelectedLayers()
Availability
Flash MX 2004.
Usage
timeline.setSelectedLayers(index [, bReplaceCurrentSelection])
Parameters
index A zero-based index for the layer to select.
bReplaceCurrentSelection A Boolean value that, if it is set to true, causes the method to replace the current
selection;
false causes the method to extend the current selection. The default value is true. This parameter is
optional.
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.
Vue de la page 510
1 2 ... 506 507 508 509 510 511 512 513 514 515 516 ... 559 560

Commentaires sur ces manuels

Pas de commentaire