User Guide
236 Fireworks JavaScript API
Description
Stores the current selection in bitmap mode as the “Selective JPEG mask”. Use
dom.restoreJPEGMask() to restore the JPEG mask.
See also
dom.restoreJPEGMask()
dom.saveSelection()
Availability
Fireworks 4.
Usage
dom.saveSelection({selectionName}, {toDocument}, {operation})
Arguments
selectionName User-specified name of the selection to save. This parameter is optional. If
selectionName is not specified, Fireworks will save the selection with the name "default".
toDocument Index of a currently open document where the selection will be saved. This
parameter is optional. If
toDocument is not specified, Fireworks will save the selection to the
active document.
operation The operation to be performed on the selection and on the selection being
loaded from the
selectionName parameter. Acceptable values are "new or replace",
"add", "subtract", and "intersect". This parameter is optional. If operation is not
specified, Fireworks treats it as if it were specified as
"new or replace".
Returns
Nothing.
Description
Stores the current selection in bitmap mode as the saved selection. Use
dom.restoreSelection() to restore the selection.
See also
dom.restoreSelection()