MACROMEDIA FIREWORKS 8-EXTENDING FIREWORKS Manual page 277

Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FIREWORKS 8-EXTENDING FIREWORKS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Fireworks 8

Table of Contents