beautypg.com

Timeline.pastemotion(), Then use, To apply the motion to other frames – Adobe Extending Flash Professional CS4 User Manual

Page 505

background image

483

EXTENDING FLASH CS4 PROFESSIONAL

Timeline object

Returns
Nothing.

Description
Method; pastes the range of frames from the clipboard into the specified frames.

Example
The following example pastes the frames on the clipboard to the currently selected frame or playhead location:

fl.getDocumentDOM().getTimeline().pasteFrames();

The following example pastes the frames on the clipboard at Frame 2 up to, but not including, Frame 10 (remember
that index values are different from frame number values):

fl.getDocumentDOM().getTimeline().pasteFrames(1, 9);

The following example pastes the frames on the clipboard starting at Frame 5:

fl.getDocumentDOM().getTimeline().pasteFrames(4);

timeline.pasteMotion()

Availability
Flash CS3 Professional.

Usage

timeline.pasteMotion()

Parameters
None.

Returns
Nothing.

Description
Method; pastes the range of motion frames retrieved by

timeline.copyMotion()

to the Timeline. If necessary,

existing frames are displaced (moved to the right) to make room for the frames being pasted.

Example
The following example pastes the motion on the clipboard to the currently selected frame or playhead location,
displacing that frame to the right of the pasted frames:

fl.getDocumentDOM().getTimeline().pasteMotion();

See also

timeline.copyMotion()