beautypg.com

Frame.motiontweenorienttopath, Frame.motiontweenrotate, Frame.motiontweenrotatetimes – Adobe Extending Flash Professional CS4 User Manual

Page 304

background image

282

EXTENDING FLASH CS4 PROFESSIONAL

Frame object

Example
The following example sets the name of the first frame in the top layer to

"First Frame"

and then sets its label

to

"comment"

:

fl.getDocumentDOM().getTimeline().layers[0].frames[0].name = 'First Frame';

fl.getDocumentDOM().getTimeline().layers[0].frames[0].labelType = 'comment';

frame.motionTweenOrientToPath

Availability
Flash MX 2004.

Usage

frame.motionTweenOrientToPath

Description
Property; a Boolean value that specifies whether the tweened element rotates the element as it moves along a path to
maintain its angle with respect to each point on the path (

true

) or whether it does not rotate (

false

).

If you want to specify a value for this property, you should set

frame.motionTweenRotate

to

"none"

.

frame.motionTweenRotate

Availability
Flash MX 2004.

Usage

frame.motionTweenRotate

Description
Property; a string that specifies how the tweened element rotates. Acceptable values are

"none"

,

"auto"

,

"clockwise"

, and

"counter-clockwise"

. A value of

"auto"

means the object will rotate in the direction requiring

the least motion to match the rotation of the object in the following keyframe.

If you want to specify a value for

frame.motionTweenOrientToPath

, set this property to

"none"

.

Example
See

frame.motionTweenRotateTimes

.

frame.motionTweenRotateTimes

Availability
Flash MX 2004.