
470
EXTENDING FLASH CS4 PROFESSIONAL
Timeline object
Description
Method; copies motion on selected frames, either from a motion tween or from frame-by-frame animation. You can
then use
timeline.pasteMotion() to apply the motion to other frames.
To copy motion as text (code) that you can paste into a script, see timeline.copyMotionAsAS3().
Example
The following example copies the motion from the selected frame or frames:
fl.getDocumentDOM().getTimeline().copyMotion();
See also
timeline.copyMotionAsAS3(), timeline.pasteMotion()
timeline.copyMotionAsAS3()
Availability
Flash CS3 Professional.
Usage
timeline.copyMotionAsAS3()
Parameters
None.
Returns
Nothing.
Description
Method; copies motion on selected frames, either from a motion tween or from frame-by-frame animation, to the
clipboard as ActionScript 3.0 code. You can then paste this code into a script.
To copy motion in a format that you can apply to other frames, see timeline.copyMotion().
Example
The following example copies the motion from the selected frame or frames to the clipboard as ActionScript 3.0 code:
fl.getDocumentDOM().getTimeline().copyMotionAsAS3();
See also
timeline.copyMotion()
timeline.createMotionTween()
Availability
Flash MX 2004.
Kommentare zu diesen Handbüchern