beautypg.com

Frame.motiontweenscale, Frame.motiontweensnap – Adobe Extending Flash Professional CS4 User Manual

Page 305

background image

283

EXTENDING FLASH CS4 PROFESSIONAL

Frame object

Usage

frame.motionTweenRotateTimes

Description
Property; an integer that specifies the number of times the tweened element rotates between the starting keyframe and
the next keyframe.

Example
The following example rotates the element in this frame counter-clockwise three times by the time it reaches the next
keyframe:

fl.getDocumentDOM().getTimeline().layers[0].frames[0].motionTweenRotate = "counter-

clockwise";

fl.getDocumentDOM().getTimeline().layers[0].frames[0].motionTweenRotateTimes = 3;

frame.motionTweenScale

Availability
Flash MX 2004.

Usage

frame.motionTweenScale

Description
Property; a Boolean value that specifies whether the tweened element scales to the size of the object in the following
keyframe, increasing its size with each frame in the tween (

true

), or doesn’t scale (

false

).

Example
The following example specifies that the tweened element should scale to the size of the object in the following
keyframe, increasing its size with each frame in the tween.

fl.getDocumentDOM().getTimeline().layers[0].frames[0].motionTweenScale = true;

frame.motionTweenSnap

Availability
Flash MX 2004.

Usage

frame.motionTweenSnap

Description
Property; a Boolean value that specifies whether the tweened element automatically snaps to the nearest point on the
motion guide layer associated with this frame’s layer (

true

) or not (

false

).