214
Chapter 5: Fireworks JavaScript API
dom.setHotspotColor()
Availability
Fireworks 3.
Usage
dom.setHotSpotColor(
whatToSet
,
color
)
Arguments
whatToSet
Acceptable values are
"hotspots"
,
"slices"
, and
"hotspots and slices"
.
color
A color string (see
“Color string data type” on page 11
)
.
Returns
Nothing.
Description
Sets the color to the specified value for the Hotspots and slices in the selection.
Example
The following command sets the color of the selected Hotspots to red.
fw.getDocumentDOM().setHotspotColor("hotspots", "#ff0000");
dom.setHotspotRectangle()
Availability
Fireworks 3.
Usage
dom.setHotspotRectangle(
boundingRectangle
,
bMakeCopy
)
Arguments
boundingRectangle
A rectangle that specifies the size of the new Hotspot or slice (see
“Rectangle data type” on page 11
).
bMakeCopy
A Boolean value; if it is
true
, the selection is copied and resized instead of moved
and resized.
Returns
Nothing.
Description
If the selection is a single Hotspot or slice, this function moves or copies it to the specified
location at the specified size.
Summary of Contents for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Page 1: ...Extending Fireworks...
Page 4: ...4 Contents...
Page 8: ...8 Chapter 1 Extending Fireworks Overview...
Page 102: ...102 Chapter 4 Auto Shapes...