Layer.name; Layer.outline - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

Description
Property; a Boolean value that specifies the locked status of the layer. If set to
locked. The default value is
Example
The following example stores the Boolean value for the status of the first layer in the
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
, all objects on the layer appear only with outlines. If
true
created.
Example
The following example makes all objects on the first layer appear only with outlines:
fl.getDocumentDOM().getTimeline().layers[0].outline = true;
.
false
true
, objects appear as they were
false
Layer object
, the layer is
lockStatus
211

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents