Adobe 38039927 - Fireworks CS3 - PC Extended User Manual page 54

Extending fireworks
Hide thumbs Also See for 38039927 - Fireworks CS3 - PC:
Table of Contents

Advertisement

ADOBE FIREWORKS CS3
50
Extending Guide
Example
The following command copies the red data from the Clipboard into the red channel:
fw.getDocumentDOM().clipPasteFromChannelToChannel("red", "red");
The following command copies the green data from the Clipboard into the alpha channel:
fw.getDocumentDOM().clipPasteFromChannelToChannel("green", "alpha");
dom.clipPasteInside()
Availability
Fireworks 3, deprecated in 4 in favor of
(see "dom.clipPasteAsMask()" on page 48).
dom.clipPasteAsMask()
Usage
dom.clipPasteInside({whatIfResolutionDifferent})
Arguments
An optional string that specifies how resampling should be done if the resolution
whatIfResolutionDifferent
of the Clipboard contents doesn't match the resolution of the document. Acceptable values for
whatIfResolu-
are
,
, and
(displays a dialog box to let the user
tionDifferent
"resample"
"do not resample"
"ask user"
decide). If
is omitted or
,
is assumed.
whatIfResolutionDifferent
null
"ask user"
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.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs3

Table of Contents