Layer object
211
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
Description
Property; a Boolean value that specifies the status of outlines for all objects on the layer. If set to
true
, all objects on the layer appear only with outlines. If
false
, objects appear as they were
created.
Example
The following example makes all objects on the first layer appear only with outlines:
fl.getDocumentDOM().getTimeline().layers[0].outline = true;
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...