Document functions
169
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” on page 11
). For example, passing
({
x
:
1
,
y
:
2})
moves the selection one pixel to the
right and two 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 down by 84 pixels.
fw.getDocumentDOM().moveSelectionBy({x:62, y:84}, false, false);
dom.moveSelectionMaskBy()
Availability
Fireworks 4.
Usage
dom.moveSelectionMaskBy(
delta
)
Arguments
delta
A point that specifies the
x-,y
-coordinate values by which the mask is moved (see
“Point
data type” on page 11
). For example, passing
({
x
:
1
,
y
:
2})
moves the mask 1 pixel to the right and
2 pixels down.
Returns
Nothing.
Description
Moves the current pixel mask by the specified amount. If there is no pixel selection, an exception
is thrown.
Summary of Contents for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Page 1: ...Extending Fireworks...
Page 4: ...4 Contents...
Page 8: ...8 Chapter 1 Extending Fireworks Overview...
Page 102: ...102 Chapter 4 Auto Shapes...