User Guide

Document functions 219
Arguments
layerIndex
An integer value that specifies the layer that should be shown or hidden, starting
with
0 (although, to specify the current layer, pass –1 here). To show or hide all the layers on a
frame, use the
bAllLayers argument.
frameIndex An integer value that specifies the frame that contains the layer to be shown or
hidden, starting with
0 (although, to specify the current frame, pass –1 here). A zero-based integer
specifying the frame that contains the layer to be shown or hidden.
bShow If the value of bShow is set to true, the layer is visible. If bShow is false, it is hidden.
bAllLayers If bAllLayers is true, all the layers on the specified frame are shown or hidden,
and any value that is passed for
layerIndex is ignored.
Returns
Nothing.
Description
Shows or hides a layer on the specified frame.
dom.setMatteColor()
Availability
Fireworks 3.
Usage
dom.setMatteColor(bUseMatteColor, matteColor)
Arguments
bUseMatteColor
If bUseMatteColor is true, the documents matte color is set to the value that
is specified by
matteColor. If bUseMatteColor is false, any matte color is removed from the
document, and the second argument is ignored.
matteColor A color string (see “Color string data type” on page 11).
Returns
Nothing.
Description
Sets or removes the documents matte color that is used for exporting.
Example
The following command sets the matte color to blue.
fw.getDocumentDOM().setMatteColor(true, "#0033ff");