Macromedia fireworks mx 2004-extending fireworks User Manual

Page of 296
42
Chapter 2:  The Fireworks Object Model
Hotspot object
A Hotspot converts to an image map during HTML export. Hotspot is a subclass of the base 
class Element and contains the following properties in addition to those in Element (see 
).
SliceHotspot object
A slice Hotspot converts to an image slice during HTML export. SliceHotspot is a subclass of the 
base class Hotspot and contains the following properties in addition to those in Hotspot (see 
). Read-only properties are marked with a bullet (•).
Property
Data type
Notes
altText
string
Text that is written into the HTML Alt tag 
when exporting.
behaviors
array
Array of Behavior objects for the Hotspot 
(see 
).
color
string
Color in which the Hotspot is drawn in 
the Document window. Default value 
is 
"#00FFFF"
.
contour
object
Contour object for the Hotspot (see 
). Used only if 
shape="polyline"
; otherwise 
null
.
shape
string
Acceptable values are 
"rectangle", 
"circle"
, and 
"polyline"
.
targetText
string
Text that is written into the HTML 
Target
 tag 
when exporting.
urlText
string
Text that is written into the HTML 
Href
 tag 
when exporting.
Property
Data type
Notes
baseName
string
Base name for slice filenames, or 
null
 for 
automatic name.
exportOptions
object
ExportOptions object (see 
); 
null
 if using current 
document defaults.
htmlText
string
If 
sliceKind
 is set to 
"empty"
, this text is 
exported instead of the image. The default is 
an empty string.
sliceID
 •
string
An arbitrary string that uniquely identifies 
this slice.