Adobe Extending Flash Professional CS4 Uživatelský manuál Strana 494

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 560
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 493
472
EXTENDING FLASH CS4 PROFESSIONAL
Timeline object
timeline.currentLayer
Availability
Flash MX 2004.
Usage
timeline.currentLayer
Description
Property; the zero-based index for the currently active layer. A value of 0 specifies the top layer, a value of 1 specifies
the layer below it, and so on.
Example
The following example makes the top layer active:
fl.getDocumentDOM().getTimeline().currentLayer = 0;
The following example stores the index of the currently active layer in the curLayer variable:
var curLayer = fl.getDocumentDOM().getTimeline().currentLayer;
timeline.cutFrames()
Availability
Flash MX 2004.
Usage
timeline.cutFrames([startFrameIndex [, endFrameIndex]])
Parameters
startFrameIndex A zero-based index that specifies the beginning of a range of frames to cut. If you omit
startFrameIndex, the method uses the current selection. This parameter is optional.
endFrameIndex A zero-based index that specifies the frame at which to stop cutting. The range of frames goes up to,
but does not include, endFrameIndex. If you specify only startFrameIndex, endFrameIndex defaults to the
startFrameIndex value. This parameter is optional.
Returns
Nothing.
Description
Method; cuts a range of frames on the current layer from the timeline and saves them to the clipboard.
Example
The following example cuts the selected frames from the timeline and saves them to the clipboard:
fl.getDocumentDOM().getTimeline().cutFrames();
Zobrazit stránku 493
1 2 ... 489 490 491 492 493 494 495 496 497 498 499 ... 559 560

Komentáře k této Příručce

Žádné komentáře