218
Chapter 5: Fireworks JavaScript API
Returns
Nothing.
Description
Renames the specified layer. Layers aren’t required to have unique names, so no duplicate
checking occurs.
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
)
Summary of Contents for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Page 1: ...Extending Fireworks...
Page 4: ...4 Contents...
Page 8: ...8 Chapter 1 Extending Fireworks Overview...
Page 102: ...102 Chapter 4 Auto Shapes...