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

  • 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 311
290
EXTENDING FLASH PROFESSIONAL
Frame object
Last updated 5/2/2011
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()) {
//fl.trace(theFrame.getMotionObjectXML());
}else{
fl.trace("It is not motion.");
}
frame.hasCustomEase
Availability
Flash 8.
Usage
frame.hasCustomEase
Description
Property; a Boolean value. If true, the frame gets its ease information from the custom ease curve. If false, the frame
gets its ease information from the ease value.
Example
The following example specifies that the first frame in the top layer should get its ease information from the ease value
rather than the custom ease curve:
var theFrame = fl.getDocumentDOM().getTimeline().layers[0].frames[0]
theFrame.hasCustomEase = false;
See also
frame.getCustomEase(), frame.setCustomEase(), frame.useSingleEaseCurve
frame.hasMotionPath()
Availability
Flash Professional CS5.
Usage
Frame.hasMotionPath()
Description
Method; a Boolean value. Lets you know whether the current selection includes a motion path.
Zobrazit stránku 311
1 2 ... 307 308 309 310 311 312 313 314 315 316 317 ... 564 565

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

Žádné komentáře