MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 282

Extending flash
Table of Contents

Advertisement

Parameters
A string that specifies the property the ease curve should be used for. Acceptable
property
values are
,
,
,
,
, and
.
"all"
"position"
"rotation"
"scale"
"color"
"filters"
An array of objects that defines the ease curve. Each array element must be a
easeCurve
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. For
example, the following illustration shows an ease curve that would be created if the
array contained values for the seven points shown as p1 through p7:
easeCurve
Example
The following example sets the ease curve for all properties of the first frame on the first layer
to the Bézier curve specified by the control points and tangent end points stored in the
array:
myCurve
var theFrame = fl.getDocumentDOM().getTimeline().layers[0].frames[0]
var myCurve = [{x:100, y:200},{x:200, y:100}, {x:10, y:0}]
theFrame.setCustomEase("all", myCurve);
See also
,
,
frame.getCustomEase()
frame.hasCustomEase
frame.useSingleEaseCurve
282
Objects

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents