Layer.locked, Layer.name, Layer.outline – Adobe Extending Flash Professional CS4 User Manual
Page 331
309
EXTENDING FLASH CS4 PROFESSIONAL
Layer object
layer.locked
Availability
Flash MX 2004.
Usage
layer.locked
Description
Property; a Boolean value that specifies the locked status of the layer. If set to
true
, the layer is locked. The default
value is
false
.
Example
The following example stores the Boolean value for the status of the first layer in the
lockStatus
variable:
var lockStatus = fl.getDocumentDOM().getTimeline().layers[0].locked;
The following example sets the status of the first layer to unlocked:
fl.getDocumentDOM().getTimeline().layers[0].locked = false;
layer.name
Availability
Flash MX 2004.
Usage
layer.name
Description
Property; a string that specifies the name of the layer.
Example
The following example sets the name of the first layer in the current document to
foreground
:
fl.getDocumentDOM().getTimeline().layers[0].name = "foreground";
layer.outline
Availability
Flash MX 2004.
Usage
layer.outline