User Guide

476 Objects
Description
Method; copies a range of frames on the current layer to the Clipboard.
Example
The following example copies the selected frames to the Clipboard:
fl.getDocumentDOM().getTimeline().copyFrames();
The following example copies Frame 2 up to, but not including, Frame 10, to the Clipboard
(remember that index values are different from frame number values):
fl.getDocumentDOM().getTimeline().copyFrames(1, 9);
The following example copies Frame 5 to the Clipboard:
fl.getDocumentDOM().getTimeline().copyFrames(4);
timeline.createMotionTween()
Availability
Flash MX 2004.
Usage
timeline.createMotionTween([startFrameIndex [, endFrameIndex]])
Parameters
startFrameIndex A zero-based index that specifies the beginning frame at which to create
a motion tween. If you omit
startFrameIndex, the method uses the current selection. This
parameter is optional.
endFrameIndex A zero-based index that specifies the frame at which to stop the motion
tween. The range of frames goes up to, but does not include,
endFrameIndex. If you specify
only
startFrameIndex, endFrameIndex defaults to the startFrameIndex value. This
parameter is optional.
Returns
Nothing.
Description
Method; sets the frame.tweenType property to motion for each selected keyframe on the
current layer, and converts each frames contents to a single symbol instance if necessary. This
property is the equivalent to the Create Motion Tween menu item in the Flash authoring tool.