138
Fireworks JavaScript API
Example
fw.getDocumentDOM().addBehavior("MM_swapImgRestore()", "onMouseOut", -1);
Description
Adds a swap image restore behavior.
dom.addElementMask()
Availability
Fireworks 4.
Usage
dom.addElementMask(mode, {
bEnterMaskEditMode
})
Arguments
mode
Acceptable values for
mode
are "
reveal all", "hide all", "reveal selection",
and
"hide selection"
. If the user is not in bitmap mode, or if there is no pixel
selection,
"reveal selection"
and
"hide selection"
operate the same as
"reveal
all"
and
"hide all"
, respectively.
bEnterMaskEditMode
If
bEnterMaskEditMode
(optional) is set to
true
, Fireworks enters
mask-edit mode on the newly added mask; if omitted, it defaults to
false
.
Returns
Nothing.
Description
Adds a new empty mask to the selected element. If the selection already has an element mask,
it is replaced with the new one. Only one element can be selected when calling this function.
If selecting more than one element (or none) at the time this function is called, Fireworks
throws an exception.
dom.addFrames()
Availability
Fireworks 3, enhanced in Fireworks 4.
Usage
dom.addFrames(
howMany
,
where
, {
bAdvanceActiveFrame
})
Summary of Contents for FIREWORKS 8-EXTENDING FIREWORKS
Page 1: ...Extending Fireworks ...
Page 4: ...4 Contents ...
Page 358: ...358 Fireworks JavaScript API ...
Page 372: ...372 Index ...