MACROMEDIA FIREWORKS MX 2004-EXTENDING FIREWORKS Manual page 105

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

Advertisement

Example
The following command adds a simple rollover behavior at the end of the selected slice
or Hotspot.
fw.getDocumentDOM().addBehavior("MM_simpleRollover()", "onMouseOver", -1);
See also
dom.removeBehavior()
Using the dom.addBehavior() function
The following code shows the syntax for
fw.getDocumentDOM().addBehavior(action, event, eventindex);
The first argument is a string that specifies the behavior to be added; see
on page
104. The information in this section describes the acceptable values for the
argument that is passed to
MM_nbGroup [down]
Availability
Fireworks 3.
Arguments
type, barName, target, swapFrame, fileName, preload
Pass
for
"down"
Pass
"navbar1"
specifies the slice to which the behavior is attached. Pass
target
values are used internally by Fireworks.
is an integer value that specifies the frame to swap, starting with
swapFrame
as a URL, pass
fileName
specifies the frame or file to swap. If you specified a frame to use in
fileName
an empty text string. If you want to specify a filename and you passed
the string for the relative URL of the image.
is a binary value that specifies whether to preload the swapped image (pass
preload
(pass
).
0
Description
Sets a navigation bar "down" behavior.
Example
fw.getDocumentDOM().addBehavior("MM_nbGroup(\'down\',\'navbar1\',-
1,2,\"\",1)", "onClick", -1);
dom.addBehavior()
.
type
for the name of the navigation bar.
here).
–1
:
dom.addBehavior()
.
"dom.addBehavior()"
action
for this value; all other
–1
(although, to use
0
swapFrame
for
–1
swapFrame
) or not
1
Document functions
, pass
, pass
105

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