HTML export objects
81
BehaviorInfo object
The BehaviorInfo object describes a behavior that is assigned to an element. There are seven
behaviors: Status Message, Swap Image, Button Down, Swap Image Restore, Button
Highlight, Button Restore, and Popup Menu (new in Fireworks 4). The following table lists
the properties of the BehaviorInfo object, along with their data types and, where appropriate,
acceptable values and notes. All BehaviorInfo object properties are read-only.
Property (read-only)
Data type
Notes
action
integer
Specifies the type of behavior: 1 is
Status
Message
, 2 is
Swap Image
, 4 is
Button Down
,
5 is
Swap Image Restore
, 6 is
Button
Highlight
, 7 is
Button Restore
, and 9 is
Popup Menu
. In the standard (default)
templates, the following values are defined:
var kActionStatusMessage = 1;
var kActionSwapImage = 2;
var kActionButtonDown = 4;
var kActionSwapImageRestore = 5;
var kActionButtonHighlight = 6;
var kActionButtonRestore = 7;
var kActionPopupMenu = 9;
behaviorText
string
For roundtrip HTML from Dreamweaver,
the JavaScript behaviors that don’t have an
equivalent in Fireworks.
borderColor
string
If
action
is set to 9 (Popup Menu), specifies
the border color of the menu in
hexidecimal.
borderSize
integer
If
action
is set to 9 (Popup Menu), specifies
the size of the menu border in points.
cellOverColor
string
If
action
is set to 9 (Popup Menu), specifies
the cell color for the Over state.
cellUpColor
string
If
action
is set to 9 (Popup Menu), specifies
the cell color for the Up state.
creationDate
date
Specifies the date the document was
created.
dhHref
string
If
action
is set to 6 (Button Highlight),
specifies the URL of the highlight image
used for the Down button state.
dhTargetFrame
integer
If
action
is set to 6 (Button Highlight),
specifies the target frame number for the
down highlight state.
Summary of Contents for FIREWORKS 8-EXTENDING FIREWORKS
Page 1: ...Extending Fireworks ...
Page 4: ...4 Contents ...
Page 358: ...358 Fireworks JavaScript API ...
Page 372: ...372 Index ...