Adobe Extending Flash Professional CS5 Uživatelský manuál Strana 490

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 565
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 489
468
EXTENDING FLASH PROFESSIONAL
Timeline object
Last updated 5/2/2011
Parameters
startFrameIndex A zero-based index that specifies the starting frame to convert to keyframes. If you omit
startFrameIndex, the method converts the currently selected frames. This parameter is optional.
endFrameIndex A zero-based index that specifies the frame at which the conversion to keyframes will stop. The range
of frames to convert goes up to, but does not include, endFrameIndex. If you specify only startFrameIndex,
endFrameIndex defaults to the value of startFrameIndex. This parameter is optional.
Returns
Nothing.
Description
Method; converts frames to blank keyframes on the current layer.
Example
The following example converts Frame 2 up to, but not including, Frame 10 to blank keyframes (remember that index
values are different from frame number values):
fl.getDocumentDOM().getTimeline().convertToBlankKeyframes(1, 9);
The following example converts Frame 5 to a blank keyframe:
fl.getDocumentDOM().getTimeline().convertToBlankKeyframes(4);
timeline.convertToKeyframes()
Availability
Flash MX 2004.
Usage
timeline.convertToKeyframes([startFrameIndex [, endFrameIndex]])
Parameters
startFrameIndex A zero-based index that specifies the first frame to convert to keyframes. If you omit
startFrameIndex, the method converts the currently selected frames. This parameter is optional.
endFrameIndex A zero-based index that specifies the frame at which conversion to keyframes will stop. The range of
frames to convert goes up to, but does not include, endFrameIndex. If you specify only startFrameIndex,
endFrameIndex defaults to the value of startFrameIndex. This parameter is optional.
Returns
Nothing.
Description
Method; converts a range of frames to keyframes (or converts the selection if no frames are specified) on the current
layer.
Example
The following example converts the selected frames to keyframes:
Zobrazit stránku 489
1 2 ... 485 486 487 488 489 490 491 492 493 494 495 ... 564 565

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

Žádné komentáře