User Guide
110 Chapter 5: Fireworks JavaScript API
Example
The following command adds one frame after the current frame but does not change the
active frame.
fw.getDocumentDOM().addFrames(1, "after current", false);
dom.addGuide()
Availability
Fireworks 3.
Usage
dom.addGuide(float position, guidekind)
Arguments
position
A floating-point value that specifies the x or y coordinate at which to add the guide.
guidekind Acceptable values for guidekind are "horizontal" and "vertical". If guidekind is
"horizontal", it is assumed that position is a y coordinate; if "vertical", it is an
x coordinate.
Returns
Nothing.
Description
Adds a guide to the document. If a guide already exists at the specified position, this function
has no effect.
Example
The following command adds a vertical guide at the x coordinate of 217.
fw.getDocumentDOM().addGuide(217, "vertical");
dom.addNewHotspot()
Availability
Fireworks 3.
Usage
dom.addNewHotspot(hotspot-kind, hotspot-shape, boundingRectangle)
Arguments
hotspot-kind
Acceptable values are "hotspot" and "slice".
hotspot-shape Acceptable values are "rectangle" and "oval".
boundingRectangle A rectangle that specifies the bounds within which the Hotspot is placed
(see “Rectangle data type” on page 11).
Returns
Nothing.