Adobe Extending Flash Professional CS4 Manuale Utente Pagina 310

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 560
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 309
288
EXTENDING FLASH CS4 PROFESSIONAL
Frame object
Description
Property; a string that specifies the sync behavior of a sound that is attached directly to a frame
(
frame.soundLibraryItem). Acceptable values are "event", "stop", "start", and "stream".
Example
The following example specifies that a sound should stream:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].soundSync = 'stream';
frame.startFrame
Availability
Flash MX 2004.
Usage
frame.startFrame
Description
Read-only property; the index of the first frame in a sequence.
Example
In the following example, stFrame is the index of the first frame in the frame sequence. In this example, a frame
sequence is spanning the six frames from Frame 5 to Frame 10. Therefore, the value of
stFrame at any frame between
Frame 5 and Frame 10 is 4 (remember that index values are different from frame number values).
var stFrame = fl.getDocumentDOM().getTimeline().layers[0].frames[4].startFrame;
fl.trace(stFrame); // 4
var stFrame = fl.getDocumentDOM().getTimeline().layers[0].frames[9].startFrame;
fl.trace(stFrame); // 4
frame.tweenEasing
Availability
Flash MX 2004.
Usage
frame.tweenEasing
Description
Property; an integer that specifies the amount of easing that should be applied to the tweened object. Acceptable values
are -100 to 100. To begin the motion tween slowly and accelerate the tween toward the end of the animation, use a
value between -1 and -100. To begin the motion tween rapidly and decelerate the tween toward the end of the
animation, use a positive value between 1 and 100.
Vedere la pagina 309
1 2 ... 305 306 307 308 309 310 311 312 313 314 315 ... 559 560

Commenti su questo manuale

Nessun commento