Adobe Extending Flash Professional CS5 Manuel d'utilisateur Page 506

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 565
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 505
484
EXTENDING FLASH PROFESSIONAL
Timeline object
Last updated 5/2/2011
Parameters
frameNumIndex A zero-based index that specifies the frame index at which to insert the keyframe in the current layer.
If you omit frameNumIndex, the method uses the frame number of the current playhead or selected frame. This
parameter is optional.
Returns
Nothing.
Description
Method; inserts a keyframe at the specified frame. If you omit the parameter, the method inserts a keyframe using the
playhead or selection location.
This method works the same as timeline.insertBlankKeyframe() except that the inserted keyframe contains the
contents of the frame it converted (that is, it’s not blank).
Example
The following example inserts a keyframe at the playhead or selected location:
fl.getDocumentDOM().getTimeline().insertKeyframe();
The following example inserts a keyframe at Frame 10 of the second layer (remember that index values are different
from frame or layer number values):
fl.getDocumentDOM().getTimeline().currentLayer = 1;
fl.getDocumentDOM().getTimeline().insertKeyframe(9);
timeline.layerCount
Availability
Flash MX 2004.
Usage
timeline.layerCount
Description
Read-only property; an integer that represents the number of layers in the specified timeline.
Example
The following example uses the NumLayer variable to store the number of layers in the current scene:
var NumLayer = fl.getDocumentDOM().getTimeline().layerCount;
timeline.layers
Availability
Flash MX 2004.
Vue de la page 505
1 2 ... 501 502 503 504 505 506 507 508 509 510 511 ... 564 565

Commentaires sur ces manuels

Pas de commentaire