beautypg.com

Frame.hascustomease, Frame.hasmotionpath() – Adobe Extending Flash Professional CS5 User Manual

Page 312

background image

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.

This manual is related to the following products: