User Guide
Document functions 143
Description
Makes a duplicate of the selection, offsetting it slightly from the original.
Example
The following command duplicates the selected items.
fw.getDocumentDOM().duplicateSelection();
See also
dom.cloneSelection()
dom.duplicateSelectionToFrameRange()
Availability
Fireworks 3.
Usage
dom.duplicateSelectionToFrameRange(frameIndexFirst, frameIndexLast)
Arguments
frameIndexFirst
and frameIndexLast Integer values that specify the range of frames
(inclusive) to which the items should be copied, starting with
0 (although, to specify the current
frame, pass
–1 here).
• If both arguments are the same, duplicates are placed only on that frame.
• If the range includes the current frame, duplicates are not placed on that frame.
Returns
Nothing.
Description
Duplicates the selection to a range of frames of the document.
dom.duplicateSelectionToFrames()
Availability
Fireworks 3.
Usage
dom.cuplicateSelectionToFrames(whichFrames)
Arguments
whichFrames
Acceptable values are "all", "previous", "next", and "end". Note that "end"
means the last frame of the document; it does not add a new frame.
Returns
Nothing.
Description
Duplicates the selection to specified frames of the document.