Chapter 6: Html Export Objects; Behaviorinfo Object - Adobe 38039927 - Fireworks CS3 - PC Extended User Manual

Extending fireworks
Hide thumbs Also See for 38039927 - Fireworks CS3 - PC:
Table of Contents

Advertisement

Chapter 6: HTML export objects

Fireworks provides several object types that support the output of HTML and sliced images from Fireworks. These
objects let you write JavaScript scripts that create templates to output the type of HTML that suits your specific
requirement (generic HTML, Dreamweaver-compatible HTML, and so on). For each HTML template, use a
Slices.htt file that generates the HTML for that particular template. For more information, see the Slices.htt and
Metafile.htt files that are installed with Fireworks.
Note: For information on how to format nonstandard data types, such as rectangle or point, see "Formatting
nonstandard data types" on page 5.

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)
action
behaviorText
borderColor
borderSize
cellOverColor
cellUpColor
Data type
Notes
integer
Specifies the type of behavior: 1 is
Message
5 is
Swap Image Restore
Highlight
Popup Menu
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;
string
For roundtrip HTML from Dreamweaver, the JavaS-
cript behaviors that don't have an equivalent in Fire-
works.
string
If
action
border color of the menu in hexidecimal.
integer
If
action
of the menu border in points.
string
If
action
color for the Over state.
string
If
action
color for the Up state.
Status
, 2 is
Swap Image
, 4 is
Button Down
, 6 is
Button
, 7 is
, and 9 is
Button Restore
. In the standard (default) templates,
is set to 9 (Popup Menu), specifies the
is set to 9 (Popup Menu), specifies the size
is set to 9 (Popup Menu), specifies the cell
is set to 9 (Popup Menu), specifies the cell
,
247

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs3

Table of Contents