![MACROMEDIA FIREWORKS 8-EXTENDING FIREWORKS Manual Download Page 276](http://html1.mh-extra.com/html/macromedia/fireworks-8-extending-fireworks/fireworks-8-extending-fireworks_manual_3339145276.webp)
276
Fireworks JavaScript API
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.
Returns
Nothing.
Description
Renames the specified layer. Layers aren’t required to have unique names, so no duplicate
checking occurs.
Summary of Contents for FIREWORKS 8-EXTENDING FIREWORKS
Page 1: ...Extending Fireworks ...
Page 4: ...4 Contents ...
Page 358: ...358 Fireworks JavaScript API ...
Page 372: ...372 Index ...