User Guide
216 Chapter 5: Fireworks JavaScript API
Description
Sets the Hotspot text to the specified value for the Hotspots and slices in the selection.
Arguments
whatToSet
Acceptable values are "hotspots", "slices", or "hotspots and slices".
textString A string that specifies the text to be used for the Hotspot or slice.
urlToMatch A string that specifies a URL that is already assigned to one or more Hotspots in
the document. If this value is not
null, the URLs of all Hotspots or slices in the document that
have
urlToMatch as their URL are changed to textString. Note: The URLs of both selected
and unselected Hotspots or slices are changed.
bUpdateAttributes If bUpdateAttributes is true, changed Hotspots inherit the color,
target, and alt tag text that were most recently associated with the new text value. For example,
suppose
textString is "http://www.mywebsite.com", and the last time "http://
www.mywebsite.com"
was used, it was used with a color of blue, a target of none, and an alt tag
of “Link to My Home Page”. If
bUpdateAttributes is true, any Hotspot or slice whose text is
now being changed to
"http://www.mywebsite.com" will also have a color of blue, a target of
none, and an alt tag text of
“Link to My Home Page”.
Returns
Nothing.
Description
Sets the Hotspot text to the specified value for the Hotspots and slices in the selection.
Example
The following command creates a slice and inserts the HTML text, “I am HTML text”.
fw.getDocumentDOM().setHotspotText("Slice ","I am HTML text", null, true);
dom.setLayerDisclosure()
Availability
Fireworks 4.
Usage
dom.setLayerDisclosure(layerIndex, bDisclosed)
Arguments
layerIndex
An integer value that specifies the layer that contains the elements to be displayed
or hidden, starting with 0 (although, to specify the current layer, pass –1 here).
bDisclosed If bDisclosed is true, all elements on the specified layer are displayed in the
Layers list. If
bDisclosed is false, only the layer name appears on the list.
Returns
Nothing.