Adobe Extending Flash Professional CS5 Manuale Utente Pagina 320

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 319
298
EXTENDING FLASH PROFESSIONAL
Frame object
Last updated 5/2/2011
endAtCurrentLocation A boolean value that determines whether the tween starts or ends at the current position.
Description
Method; applies the specified motion XML to the selected motion object.
Example
This example specifies that the motion XML identified as myMotionXML be applied to the selected motion object.
var doc = fl.getDocumentDOM();
var my_tl = doc.getTimeline();
this.getCurrentFrame = function(){
var layer = my_tl.layers[my_tl.currentLayer];
var frame = layer.frames[my_tl.currentFrame];
return frame;
}
var theFrame = getCurrentFrame();
theFrame.setMotionObjectXML(myMotionXML.toString(), false);
frame.shapeTweenBlend
Availability
Flash MX 2004.
Usage
frame.shapeTweenBlend
Description
Property; a string that specifies how a shape tween is blended between the shape in the keyframe at the start of the
tween and the shape in the following keyframe. Acceptable values are
"distributive" and "angular".
frame.soundEffect
Availability
Flash MX 2004.
Usage
frame.soundEffect
Description
Property; a string that specifies effects for a sound that is attached directly to a frame (frame.soundLibraryItem).
Acceptable values are "none", "left channel", "right channel", "fade left to right", "fade right to
left", "fade in", "fade out", and "custom".
Example
The following example specifies that the sound attached to the first frame should fade in:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].soundEffect = "fade in";
Vedere la pagina 319
1 2 ... 315 316 317 318 319 320 321 322 323 324 325 ... 564 565

Commenti su questo manuale

Nessun commento