Adobe Extending Flash Professional CS5 Manuale Utente Pagina 319

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 318
297
EXTENDING FLASH PROFESSIONAL
Frame object
Last updated 5/2/2011
See also
frame.getCustomEase(), frame.hasCustomEase, frame.useSingleEaseCurve
frame.setMotionObjectDuration()
Availability
Flash Professional CS5.
Usage
Frame.setMotionObjectDuration( duration [, stretchExistingKeyframes] )
Parameters
duration Specifies the number of frames for the tween span of the selected motion object.
stretchExistingKeyframes A boolean value that determines whether the tween span is stretched, or if frames are
added, to the end of the last frame.
Description
Method; sets the duration (the tween span length) of the currently selected motion object.
Example
The following example specifies a duration of 11 frames for 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();
if(theFrame.isMotionObject()){
theFrame.setMotionObjectDuration(11);
}else{
fl.trace("It isn't motion");
}
frame.setMotionObjectXML()
Availability
Flash Professional CS5.
Usage
Frame.setMotionObjectXML( xmlstr [, endAtCurrentLocation] )
Parameters
xmlstr A string value that specifies the XML string.
Vedere la pagina 318
1 2 ... 314 315 316 317 318 319 320 321 322 323 324 ... 564 565

Commenti su questo manuale

Nessun commento