dom.changeSliceGuide()
Availability
Fireworks MX.
Usage
dom.changeSliceGuide(currentPosition, newPosition, guidekind,
isMagneticDrag, isSingleDrag)
Arguments
A floating-point value that specifies the current position of the slice
currentPosition
guide to be moved.
A floating-point value that specifies the new position of the slice guide.
newPosition
Acceptable values are
and
. If the value of
guidekind
"horizontal"
"vertical"
is
, Fireworks assumes that the specified positions are y
guidekind
"horizontal"
coordinates; if
, the specified positions are x coordinates.
"vertical"
A Boolean value that determines whether to move other slice guides
isMagneticDrag
between the old and new positions. If
is
, Fireworks also moves slice
isMagneticDrag
true
guides between the old guide position and the new position. This action resizes and possibly
deletes rectangular slices that do not abut the slice guide at
.
currentPosition
A Boolean value that determines whether the operation is performed only on
isSingleDrag
the selected slice or on all slices that are affected by the slice guide. If
is
,
isSingleDrag
true
Fireworks performs only the
action on the selected slice.
changeSliceGuide()
Returns
Nothing.
Description
Moves a slice guide's position to a new location, which resizes any rectangular slices that abut
the guide. An argument controls whether slice guides that exist between the old position and
the new one are also moved.
If a slice is resized so that it has zero width or height, the slice is deleted.
This function does not change slices that are not rectangular.
Example
The following command moves a vertical slice guide from position 135 to position 275, and
moves all vertical slice guides between 135 and 275 to 275:
fw.getDocumentDOM().changeGuide(135, 275, "vertical", true);
158
Fireworks JavaScript API
Need help?
Do you have a question about the FIREWORKS 8-EXTENDING FIREWORKS and is the answer not in the manual?
Questions and answers