Example
The following example stores the Boolean value for the status of the first layer in the
variable:
lockStatus
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
Description
Property; a Boolean value that specifies the status of outlines for all objects in the layer. If set
to
, all objects in the layer appear only with outlines. If
, objects appear as they
true
false
were created.
Example
The following example makes all objects on the first layer appear only with outlines:
fl.getDocumentDOM().getTimeline().layers[0].outline = true;
Layer object
309
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?