Document functions
165
Arguments
whatIfResolutionDifferent
An optional string that specifies how resampling should be
done if the resolution of the Clipboard contents doesn’t match the resolution of the
document. Acceptable values for
whatIfResolutionDifferent
are
"resample"
,
"do not
resample"
, and
"ask user"
(displays a dialog box to let the user decide). If
whatIfResolutionDifferent
is omitted or
null
,
"ask user"
is assumed.
Returns
Nothing.
Description
Pastes the Clipboard contents into the selection, and makes the selected element into the
element mask for the pasted element(s). If the selected element already has a mask, this
function groups the pasted elements with the selected element and applies the existing
element mask to the group.
Example
The following command pastes the Clipboard contents inside the selected items. If the
resolution of the Clipboard doesn’t match the resolution of the document, Fireworks
resamples the Clipboard contents to match the document.
fw.getDocumentDOM().clipPasteInside("resample");
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.
Summary of Contents for FIREWORKS 8-EXTENDING FIREWORKS
Page 1: ...Extending Fireworks ...
Page 4: ...4 Contents ...
Page 358: ...358 Fireworks JavaScript API ...
Page 372: ...372 Index ...