User Guide

124 Chapter 5: Fireworks JavaScript API
dom.attachTextToPath()
Availability
Fireworks 3.
Usage
dom.attachtTextToPath()
Arguments
None.
Returns
Nothing.
Description
Attaches the selected text to the selected path. If no text and path are selected, no action occurs.
Example
When two items are selected (one a text block and the other a shape), the following command
attaches the text block to the shapes path.
fw.getDocumentDOM().attachTextToPath();
dom.changeGuide()
Availability
Fireworks 3.
Usage
dom.changeGuide(currentPosition, newPosition, guidekind)
Arguments
currentPosition
A floating-point value that specifies the current position of the guide.
newPosition A floating-point value that specifies the new position of the guide.
guidekind Acceptable values for guidekind are "horizontal" and "vertical". If guidekind
is
"horizontal", it is assumed that the specified positions are y coordinates; if guidekind is
"vertical", it is assumed that the specified positions are x coordinates.
Returns
Nothing.
Description
Moves a guides position to a new location.
Example
The following command moves a vertical guide from position 135 to position 275.
fw.getDocumentDOM().changeGuide(135, 275, "vertical");