User Guide
216 Fireworks JavaScript API
dom.moveSelectionToFrame()
Availability
Fireworks 3.
Usage
dom.moveSelectionToFrame(frameIndex, bMakeCopy)
Arguments
frameIndex An integer value that specifies the frame to which the selection is moved or
copied, starting with 0 (although, to specify the current frame, pass
–1 here).
bMakeCopy If bMakeCopy is true, the selection is copied instead of moved.
Returns
Nothing.
Description
Moves or copies the selection to the specified frame.
dom.moveSelectionToLayer()
Availability
Fireworks 3, updated in Fireworks 4.
Usage
dom.moveSelectionToLayer(layerIndex, bMakeCopy, {whatIfMultipleSelected},
{elementIndex})
Arguments
layerIndex An integer value that specifies the layer to which the selection should be moved
or copied, starting with 0 (although, to specify the current layer, pass –1 here).
bMakeCopy If bMakeCopy is true, the selection is copied instead of moved.
whatIfMultipleSelected An optional string that is used only if the destination is a web
layer and
bMakeCopy is true. It specifies how to create Hotspots if multiple items are selected.
Acceptable values for
whatIfMultipleSelected are "single" (creates a single Hotspot that
has the same bounding rectangle as the selection),
"multiple" (creates one Hotspot for each
item), and
"ask user" (displays a dialog box to let the user decide). If
whatIfMultipleSelected is omitted or null, "ask user" is assumed.