
32
EXTENDING FIREWORKS
The Document object
Las
t
up
d
a
ted
12/8/2009
Arguments
type, target, swapFrame, fileName, preload, downHighlight, downHighlightFrame,
downHighlightFilename
•
Pass
"over"
for
type
.
•
target specifies the slice to which the behavior is attached. Pass –
1
for this value; all other values are used internally
by Fireworks.
•
swapFrame
is an integer value that specifies the frame to swap, starting with
0
(although, to use
fileName
as a URL,
pass –
1
here).
•
fileName
specifies the frame or file to be swapped. If you specified a frame to use in
swapFrame
, pass an empty text
string. If you want to specify a filename and you passed –
1
for
swapFrame
, pass the string for the relative URL of
the image.
•
preload
is a binary value that specifies whether to preload the swapped image (pass 1) or not (pass
0
).
•
downHighlight
is a binary value that specifies whether an image should be used for highlighting on mouse down
(pass
1
) or not (pass
0
). If you pass
1
, use the next two arguments to specify the frame or image to be used.
•
downHighlightFrame
is an integer value that specifies the frame to use as a highlight image, starting with
0
(although, to use
downHighlightFrame
as a URL, pass –
1
here).
•
downHighlightFilename
specifies the frame or file to be used as the highlight image. If you specified a frame to
use in
downHighlightFrame
, pass an empty text string. If you want to specify a filename and you passed –
1
for
downHighlightFrame
, pass the string for the relative URL of the image.
Description
Sets a navigation bar highlight behavior.
Example
fw.getDocumentDOM().addBehavior("MM_nbGroup(\'over\',-1,1,\"\",1,0,3,\"\")", "onMouseOver", -1);
MM_nbGroup [image]
Availability
Fireworks 3.
Arguments
type, downHighlight, initiallyDown
•
Pass
"all"
for
type
.
•
downHighlight
is a binary value that specifies whether the image should be highlighted on a mouse Down action
(pass
1
) or not (pass
0
).
•
initiallyDown
is a binary value that specifies whether the image should initially appear as in the Down state (pass
1
) or not (pass
0
).
Description
Sets a navigation bar image behavior.
Example
fw.getDocumentDOM().addBehavior("MM_nbGroup(\'all\',1,0)", "onMouseOver", -1);
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...