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
An integer value that specifies the layer to be shared or not shared, starting with
layerIndex
(although, to specify the current layer, pass
sharedStatus
bUnshareCopiesToAllFrames
and the document has multiple frames. If these conditions are met and
bUnshareCopiesToAllFrames
the layer; if
false
If
bWarnUser
bWarnUser
asked to confirm that data on other frames can be overwritten. If
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
possible.
fw.getDocumentDOM().setLayerSharing(-1, "shared", false, true);
dom.setLayerVisible()
Availability
Fireworks 3.
Usage
dom.setLayerVisible(layerIndex, frameIndex, bShow, bAllLayers)
218
Chapter 5: Fireworks JavaScript API
Acceptable values are
"shared"
A Boolean value used only if
is
, the items on the layer are duplicated to all the frames of
true
, the items are placed only on the current frame.
is
and
true
here).
–1
or
"not shared"
bUnshareCopiesToAllFrames
and displays a warning that data loss is
Shared
.
is
sharedStatus
"not shared"
is enabled, the user is
is
bWarnUser
false
0
, data on
Need help?
Do you have a question about the FIREWORKS MX 2004-EXTENDING FIREWORKS and is the answer not in the manual?
Questions and answers