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.
|
|
downHighlight
|
Boolean
|
If action is set to 6 (Button Highlight), specifies if there is an image highlight for the Down button state.
|
|
event
|
integer
|
Specifies the type of event: 0 is Mouse Over, 1 is On Click, 2 is Mouse Out, and 3 is On Load. In the standard (default) templates, the following values are defined:
var kEventMouseOver = 0;
var kEventOnClick = 1;
var kEventMouseOut = 2;
var kEventOnLoad=3;
|
|
hasDhTargetFrame
|
Boolean
|
If action is set to 6 (Button Highlight), specifies if the highlight image for the Down button state has a target frame.
|
|
hasDhHRef
|
Boolean
|
If action is set to 6 (Button Highlight), specifies if the highlight image for the Down button state has an href.
|
|
hasHref
|
Boolean
|
If action is set to 2 (Swap Image), specifies if an external file is swapped in. The value of hasHref is always the opposite of hasTargetFrame; you cannot swap from two sources.
|
|
hasStatusText
|
Boolean
|
If action is set to 1 (Status Message), specifies if the status text is not empty.
|
|
hasTargetFrame
|
Boolean
|
If action is set to 2 (Swap Image), specifies if the swap image swaps is in another frame in the Fireworks file. The value of hasTargetFrame is always the opposite of hasHref; you cannot swap from two sources.
|
|
hideOnMouseout
|
Boolean
|
If action is set to 9 (Popup Menu), specifies if the menu is hidden on a Mouse Out event.
|
|
horzOffset
|
integer
|
If action is set to 9 (Popup Menu), horzOffset specifies the horizontal pixel offset for the menu.
|
|
href
|
string
|
If action is set to 2 (Swap Image), specifies the file URL for an external swap image file. Value is expressed as file://URL.
|
|
hiliteColor
|
string
|
If action is set to 9 (Popup Menu), specifies the highlight color at the upper-left of the menu cells.
|
|
menuFontFamily
|
string
|
If action is set to 9 (Popup Menu), specifies the name of the font family to use for the menu.
|
|
menuHeight
|
integer
|
If action is set to 9 (Popup Menu), specifies the height in points of the menu cell.
|
|
menuImagePath
|
string
|
If action is set to 9 (Popup Menu), specifies the path to the first image.
|
|
menuImagePath2
|
string
|
If action is set to 9 (Popup Menu), specifies the path to the second image.
|
|
menuItems
|
array
|
If action is set to 9 (Popup Menu), specifies an array that lists the items in the menu.
|
|
menuItemPadding
|
integer
|
If action is set to 9 (Popup Menu), specifies the cell padding for the menu items.
|
|
menuItemSpacing
|
integer
|
If action is set to 9 (Popup Menu), specifies the spacing between menu items in points.
|
|
menuWidth
|
integer
|
If action is set to 9 (Popup Menu), specifies the width in points of the menu cell.
|
|
opaqueBackground
|
Boolean
|
If action is set to 9 (Popup Menu), specifies if the menu cell background is opaque.
|
|
preload
|
Boolean
|
If action is set to 2 (Swap Image), specifies if the image is to be preloaded.
|
|
restoreOnMouseout
|
Boolean
|
If action is set to 2 (Swap Image), specifies if the original image is restored on mouse out.
|
|
shadowColor
|
string
|
If action is set to 9 (Popup Menu), specifies the shadow color at the lower-right of the menu cells.
|
|
statusText
|
string
|
If action is set to 1 (Status Message), specifies the status message text.
|
|
targetColumnNum
|
zero-based index
|
If action is set to 2 (Swap Image), specifies the column in the slices table that is swapped.
|
|
targetFrameNum
|
zero-based index
|
If action is set to 2 (Swap Image), specifies the frame number to be swapped if hasTargetFrame is set to true.
|
|
targetRowNum
|
zero-based index
|
If action is set to 2 (Swap Image), specifies the row in the slices table that is swapped.
|
|
targetTable
|
object
|
If action is set to 2 (Swap Image), specifies the table of slices in the target swap frame.
|
|
textAlignment
|
string
|
If action is set to 9 (Popup Menu), specifies the alignment for the menu text. Acceptable values are "left", "center", and "right".
|
|
textBold
|
Boolean
|
If action is set to 9 (Popup Menu), true if the menu text is bold.
|
|
textFamily
|
string
|
If action is set to 9 (Popup Menu), specifies the font family to use for the menu text.
|
|
textIndent
|
integer
|
If action is set to 9 (Popup Menu), specifies the left indent in points of the menu text.
|
|
textItalic
|
Boolean
|
If action is set to 9 (Popup Menu), true if the menu text is italic.
|
|
textOnly
|
Boolean
|
If action is set to 9 (Popup Menu), true if the pop-up menu is to be text only.
|
|
textOverColor
|
string
|
If action is set to 9 (Popup Menu), specifies the menu text color for the over state.
|
|
textSize
|
integer
|
If action is set to 9 (Popup Menu), specifies the point size for the menu text.
|
|
textUpColor
|
string
|
If action is set to 9 (Popup Menu), specifies the menu text color for the Up state.
|
|
vertical
|
Boolean
|
If action is set to 9 (Popup Menu), specifies whether the menu is vertical.
|
|
vertOffset
|
integer
|
If action is set to 9 (Popup Menu), vertOffset specifies the vertical pixel offset for the menu.
|