Palette or panel
Several API functions reference the History panel (see
Throughout the Fireworks documentation and online help, the term "palette" is reserved for
discussions of a color palette, and the term "panel" is used to refer to the floating windows that are
available within Fireworks. Therefore, when the function name contains "palette," the
descriptions refer to a "panel."
Document functions
As discussed in an earlier section,, you get and set document properties by calling functions as
methods of the document's Document Object Model (DOM) (see
document" on page
dom.functionName()
you must type
fw.getDocumentDOM()
•
How a function looks in this manual:
•
How you must type it:
fw.getDocumentDOM().addNewHotspot(); // operates on active document
or
fw.documents[documentIndex].addNewHotspot(); // operates on specified
document
dom.addBehavior()
Availability
Fireworks 3.
Usage
dom.addBehavior(action, event, eventIndex)
Arguments
A string that specifies the behavior to be added, such as
action
For a list of all the behaviors that can be added, see
on page
105.
The event that triggers the behavior. Acceptable values are
event
,
"onMouseOut"
An integer value that specifies the location where the behavior should be added,
eventIndex
starting with
(although, to specify the end location, pass
0
Returns
Nothing.
Description
Adds a specified behavior to the selected Hotspots and slices.
104
Chapter 5: Fireworks JavaScript API
10). Methods that operate on a document's DOM are listed in this section as
. However, you cannot simply type
, and
"onLoad"
"onClick"
"History panel functions" on page
dom.functionName()
or
fw.documents[documentIndex]
dom.addNewHotspot()
"Using the dom.addBehavior() function"
.
–1
"Accessing a Fireworks
. In place of
. For example:
"MM_swapImageRestore()"
"onMouseOver"
here).
278).
,
dom
.
,
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