User Guide

Document functions 277
dom.setLayerSharing()
Availability
Fireworks 3.
Usage
dom.setLayerSharing(layerIndex, sharedStatus, bUnshareCopiesToAllFrames,
bWarnUser)
Arguments
layerIndex An integer value that specifies the layer to be shared or not shared, starting
with
0 (although, to specify the current layer, pass –1 here).
sharedStatus Acceptable values are "shared" or "not shared".
bUnshareCopiesToAllFrames A Boolean value used only if sharedStatus is "not
shared"
and the document has multiple frames. If these conditions are met and
bUnshareCopiesToAllFrames is true, the items on the layer are duplicated to all the frames
of the layer; if
false, the items are placed only on the current frame.
bWarnUser If bWarnUser is true and bUnshareCopiesToAllFrames is enabled, the user is
asked to confirm that data on other frames can be overwritten. If
bWarnUser is false, data
on other frames of the layer is overwritten without warning.
Returns
Nothing.
Description
Changes the Shared layer status of a layer.
Example
The following command sets the selected layer to Shared and displays a warning that data
loss is possible:
fw.getDocumentDOM().setLayerSharing(-1, "shared", false, true);
dom.setLayerVisible()
Availability
Fireworks 3.
Usage
dom.setLayerVisible(layerIndex, frameIndex, bShow, bAllLayers)