188
Chapter 3: Objects
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; 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
.
Summary of Contents for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Page 1: ...Flash JavaScript Dictionary ...
Page 16: ...16 Contents ...
Page 40: ...40 Chapter 2 Top level functions ...
Page 368: ...368 Chapter 3 Objects ...