User Guide

Frame object 185
Frame object
Availability
Flash MX 2004.
Description
The Frame object represents frames in the layer.
Property summary for the Frame object
The following properties can be used with the Frame object:
Property Description
frame.actionScript Property; a string representing ActionScript code.
frame.duration Read-only; an integer that represents the number of frames in a
frame sequence.
frame.elements Read-only; an array of Element objects (see Element object).
frame.labelType Property; a string that specifies the type of Frame name.
frame.motionTweenOrientToPath 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).
frame.motionTweenRotate Property; a string that specifies how the tweened element
rotates.
frame.motionTweenRotateTimes Property; an integer that specifies the number of times the
tweened element rotates between the starting keyframe and
the next keyframe.
frame.motionTweenScale Property; a Boolean value; 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).
frame.motionTweenSnap Property; a Boolean value; 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 Property; a Boolean value; if set to true, synchronizes the
animation of the tweened object with the main Timeline.
frame.name Property; a string that specifies the name of the frame.
frame.shapeTweenBlend Property; a string that specifies how a shape tween is blended
between the shape in the keyframe at the start of the tween and
the shape in the following keyframe.
frame.soundEffect Property; a string that specifies effects for a sound that is
attached directly to a frame (
frame.soundLibraryItem).
CHAPTER 3
Objects