Chapter 21: frame object, Frame object – Adobe Extending Flash Professional CS5 User Manual
Page 307
285
Last updated 5/2/2011
Chapter 21: Frame object
Availability
Flash MX 2004.
Description
The Frame object represents frames in the layer.
Method summary
The following methods can be used with the Frame object:
Property summary
The following properties can be used with the Frame object:
Method
Description
frame.convertMotionObjectTo2D()
Converts the selected motion object to a 2D motion object.
frame.convertMotionObjectTo3D()
Converts the selected motion object to a 3D motion object.
Returns an array of JavaScript objects, each of which has an x and y property.
Returns the motion XML from the selected motion object.
Informs you whether or not the currrent selection has a motion tween.
Informs you whether or not the currrent selection is a 3D motion object.
Informs you whether or not the currrent selection is a motion object.
Selects or deselects the motion path of the current motion object.
Specifies a cubic Bézier curve to be used as a custom ease curve.
frame.setMotionObjectDuration()
Specifies the duration (the tween span length) of the currently selected motion
object.
Applies the specified motion XML to the selected motion object.
Property
Description
A string representing ActionScript code.
Read-only; an integer that represents the number of frames in a frame
sequence.
Read-only; an array of Element objects (see
).
A Boolean value that specifies whether the frame gets its ease information from
the custom ease curve.
A string that specifies the type of Frame name.
A Boolean value that specifies whether or not the tweened element rotates the
element as it moves along a path to maintain its angle with respect to each
point on the path.
A string that specifies how the tweened element rotates.