beautypg.com

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

Page 316

background image

294

EXTENDING FLASH PROFESSIONAL

Frame object

Last updated 5/2/2011

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

).

frame.motionTweenSync

Availability
Flash MX 2004.

This manual is related to the following products: