User Guide

Document functions 131
dom.cloneSelection()
Availability
Fireworks 3.
Usage
dom.cloneSelection()
Arguments
None.
Returns
Nothing.
Description
Makes exact duplicates of the selection, placing the duplicated items directly on top of the
original items.
Example
The following command copies the selected items on top of the original items.
fw.getDocumentDOM().cloneSelection();
See also
dom.duplicateSelection()
dom.close()
Availability
Fireworks 3.
Usage
dom.close(bPromptToSaveChanges)
Arguments
bPromptToSaveChanges
If bPromptToSaveChanges is true, and the document was changed
since the last time it was saved, the user is prompted to save any changes to the document. If
bPromptToSaveChanges is false, the user is not prompted, and changes to the document
are discarded.
Returns
Nothing.
Description
Closes the document.