User Guide

HTML export objects 65
BehaviorsList object
The BehaviorsList object is an array of BehaviorInfo objects that describe the behaviors in an
image map (see “BehaviorInfo object” on page 64). The BehaviorsList object does not occur by
itself. That is, all occurrences of BehaviorsList objects are members of other objects. In the
following example,
behaviors is an object of type BehaviorsList, and curBehavior is an object
of type BehaviorInfo.
var curBehavior = slices[i][j].behaviors[k];
The BehaviorsList object has only one property, which is read-only and is shown in the
following table.
hasTargetFrame
Boolean For swap image behaviors, true if the swap
image swaps in another frame in the
Fireworks file. The value of
hasTargetFrame
is always the opposite of
hasHref; you cannot
swap from two sources.
horzOffset
integer If action is set to 9 (Popup Menu),
horzOffset specifies the horizontal pixel
offset for the menu.
href
string A link, which is expressed as file://URL. For
swap-image behaviors, it’s the file URL for
an external swap image file.
preload
Boolean For swap-image behaviors, true if the image
is to be preloaded.
restoreOnMouseout
Boolean If set to true, the original image for a swap-
image behavior is restored on mouse out.
statusText
string For status message behaviors, the status
message text.
targetColumnNum
zero-based index For swap-image behaviors, the column in the
slices table that is swapped.
targetFrameNum
zero-based index For swap-image behaviors, this frame
number is swapped if
hasTargetFrame is set
to
true.
targetRowNum
zero-based index For swap-image behaviors, the row in the
slices table that is swapped.
vertOffset
integer If action is set to 9 (Popup Menu),
vertOffset specifies the vertical pixel offset
for the menu.
Property (read-only) Data type Notes
numberOfBehaviors
integer The number of BehaviorInfo objects in the
BehaviorsList array (0 or more) (see
“BehaviorInfo object” on page 64).
Property (read-only) Data type Notes