
285
EXTENDING FLASH CS4 PROFESSIONAL
Frame object
easeCurve An array of objects that defines the ease curve. Each array element must be a JavaScript object with x and
y properties.
Returns
Nothing.
Description
Method; specifies an array of control point and tangent endpoint coordinates that describe a cubic Bézier curve to be
used as a custom ease curve. This array is constructed by the horizontal (ordinal: left to right) position of the control
points and tangent endpoints.
Example
The following example sets the ease curve for all properties of the first frame in the first layer to the Bézier curve
specified by the
easeCurve array:
var theFrame = fl.getDocumentDOM().getTimeline().layers[0].frames[0];
var easeCurve = [ {x:0,y:0}, {x:.3,y:.3}, {x:.7,y:.7}, {x:1,y:1} ];
theFrame.setCustomEase( "all", easeCurve );
See also
frame.getCustomEase(), frame.hasCustomEase, frame.useSingleEaseCurve
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
Commenti su questo manuale