Html Export Objects - MACROMEDIA FIREWORKS MX 2004-EXTENDING FIREWORKS Manual

Extending fireworks
Hide thumbs Also See for FIREWORKS MX 2004-EXTENDING FIREWORKS:
Table of Contents

Advertisement

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
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
downHighlight
event
hasHref
hasStatusText
64
Chapter 2: The Fireworks Object Model
11.
Data type
Notes
integer
Specifies the type of behavior: 1 is
Message
5 is
Highlight
Popup Menu
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;
Boolean
For button highlight behaviors, set to
there is a down highlight image.
integer
Specifies the type of event: 0 is
1 is
On Click
Load
following values are defined:
var kEventMouseOver = 0;
var kEventOnClick = 1;
var kEventMouseOut = 2;
var kEventOnLoad=3;
Boolean
For swap-image behaviors, set to
an external file is swapped in. The value
of
hasHref
hasTargetFrame
two sources.
Boolean
For status message behaviors,
status text is not empty.
, 2 is
, 4 is
Swap Image
, 6 is
Swap Image Restore
, 7 is
Button Restore
. In the standard (default)
, 2 is
Mouse Out
. In the standard (default) templates, the
is always the opposite of
; you cannot swap from
Status
,
Button Down
Button
, and 9 is
if
true
,
Mouse Over
, and 3 is
On
if the
true
if the
true

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FIREWORKS MX 2004-EXTENDING FIREWORKS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Fireworks mx 2004

Table of Contents