dom.moveSelectionBy()

Availability

Fireworks 3.

Usage

dom.moveSelectionBy(delta, bMakeCopy, doSubSel)

Arguments

delta
A point that specifies the x,y coordinate values by which the selection moved (see Point data type). For example, passing ({x:1,y:2}) moves the selection 1 pixel to the right and 2 pixels down.

bMakeCopy
The items that are copied instead of moved.

doSubSel
If doSubSel is set to true, the function moves only the subselected parts of a path. If the argument is set to false, the function moves the whole object.

Returns

Nothing.

Description

Moves the selected items by the specified amount or makes a copy of them and offsets them from the original by the specified amount.

Example

The following command moves the selected items right by 62 pixels and 84 pixels down:

fw.getDocumentDOM().moveSelectionBy({x:62, y:84}, false, false);