beautypg.com

Timeline.copymotionasas3(), Timeline.createmotionobject() – Adobe Extending Flash Professional CS5 User Manual

Page 493

background image

471

EXTENDING FLASH PROFESSIONAL

Timeline object

Last updated 5/2/2011

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.createMotionObject()

Availability
Flash Professional CS5.

Usage

timeline.createMotionObject([startFrame [,endFrame])

Parameters

startFrame

Specifies the first frame at which to create motion objects. If you omit startFrame, the method uses the

current selection; if there is no selection, all frames at the current playhead on all layers are removed. This parameter
is optional.

This manual is related to the following products: