
106
EXTENDING FIREWORKS
The Document object
Las
t
up
d
a
ted
12/8/2009
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 8).
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);
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 8).
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.
dom.moveSelectionTo()
Availability
Fireworks 3.
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...