beautypg.com

Frame.getcustomease(), Frame.getmotionobjectxml() – Adobe Extending Flash Professional CS5 User Manual

Page 311

background image

289

EXTENDING FLASH PROFESSIONAL

Frame object

Last updated 5/2/2011

var myElements = fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements;

frame.getCustomEase()

Availability
Flash 8.

Usage

Frame.getCustomEase([property])

Parameters

property

An optional string that specifies the property for which you want to return the custom ease value.

Acceptable values are

"all"

,

"position"

,

"rotation"

,

"scale"

,

"color"

, and

"filters"

. The default value is

"all"

.

Returns
Returns an array of JavaScript objects, each of which has an x and y property.

Description
Method; returns an array of objects that represent the control points for the cubic Bézier curve that defines the ease
curve.

Example
The following example returns the custom ease value of the

position

property for the first frame in the top layer:

var theFrame = fl.getDocumentDOM().getTimeline().layers[0].frames[0]

var easeArray = theFrame.getCustomEase("position");

See also

frame.hasCustomEase

,

frame.setCustomEase()

,

frame.useSingleEaseCurve

frame.getMotionObjectXML()

Availability
Flash Professional CS5.

Usage

Frame.getMotionObjectXML()

Description
Returns a string of the motion XML from the selected motion object.

Example
The following example returns the motion XML from the selected motion object.

This manual is related to the following products: