Chapter 6: Html Export Objects; Behaviorinfo Object - Adobe 65011817 - Fireworks CS4 - Mac Extended User Manual

Extending guide
Hide thumbs Also See for 65011817 - Fireworks CS4 - Mac:
Table of Contents

Advertisement

Last updated 12/8/2009

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
nonstandard data
types" on page 7.

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
creationDate
dhHref
Data type
integer
string
string
integer
string
string
date
string
Notes
Specifies the type of behavior:
1
Image,
4
is Button Down,
5
is Swap Image Restore,
Highlight,
7
is Button Restore, and
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;
For roundtrip HTML from Dreamweaver, specifies the
JavaScript behaviors that don't have an equivalent in
Fireworks.
If
is set to 9 (Popup Menu), specifies the border color of
action
the menu, in hexadecimal.
If
is set to 9 (Popup Menu), specifies the size of the
action
menu border in points.
If
is set to 9 (Popup Menu), specifies the cell color for
action
the Over state.
If
is set to 9 (Popup Menu), specifies the cell color for
action
the Up state.
Specifies the date the document was created.
If
is set to 6 (Button Highlight), specifies the URL of the
action
highlight image used for the Down button state.
"Formatting
is Status Message,
is Swap
2
6
is Button
9
is Popup Menu. In the
270

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs4

Table of Contents