Document functions
217
Description
Specifies whether the elements on a specified layer appear in the Layers list. Disclosure affects the
layer, regardless of which frame appears.
See also
dom.setAllLayersDisclosure()
dom.setLayerLocked()
Availability
Fireworks 3.
Usage
dom.setLayerLocked(
layerIndex
,
frameIndex
,
bLock
,
bAllLayers
)
Arguments
layerIndex
An integer value that specifies the layer to be locked or unlocked, starting with
0
(although, to specify the current layer, pass
–1
here). To lock or unlock all the layers on a frame,
use the
bAllLayers
argument.
frameIndex
An integer value that specifies the frame that contains the layer that is to be locked
or unlocked, starting with
0
(although, to specify the current frame, pass
–1
here).
bLock
If
bLock
is
true
, the layer is locked. If
bLock
is
false
, it is unlocked.
bAllLayers
If
bAllLayers
is
true
, all the layers on the specified frame are locked or unlocked,
and any value passed for
layerIndex
is ignored.
Returns
Nothing.
Description
Locks or unlocks one or all the layers on the specified frame.
Example
The following command locks all the layers on the first frame.
fw.getDocumentDOM().setLayerLocked(1, 0, true, true);
dom.setLayerName()
Availability
Fireworks 3.
Usage
dom.setLayerName(
layerIndex
,
layerName
)
Arguments
layerIndex
An integer value that specifies the layer to be renamed, starting with
0
(although,
to specify the current layer, pass
–1
here).
layerName
A
string that specifies the new name for the layer.
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...