layer.parentLayer
Availability
Flash MX 2004.
Usage
layer.parentLayer
Description
Property; a Layer object that represents the layer's containing folder, guiding, or masking
layer. Acceptable values for the parent layer are a folder, guide, or mask layer that precedes the
layer, or the
of the preceding or following layer. Setting the layer's
parentLayer
parentLayer
does not move the layer's position in the list; trying to set a layer's
to a layer that
parentLayer
would require moving it has no effect. Uses
for a top-level layer.
null
Example
The following example uses two layers at the same level on the same timeline. The first layer
(layers[0]) is converted into a folder and then set as the parent folder of the second layer
(layers[1]). This action moves the second layer inside the first layer.
var parLayer = fl.getDocumentDOM().getTimeline().layers[0];
parLayer.layerType = "folder";
fl.getDocumentDOM().getTimeline().layers[1].parentLayer = parLayer;
layer.visible
Availability
Flash MX 2004.
Usage
layer.visible
Description
Property; a Boolean value that specifies whether the layer's objects on the Stage are shown or
hidden. If set to
, all objects in the layer are visible; if
, they are hidden. The default
true
false
value is
.
true
Example
The following example makes all objects in the first layer invisible:
fl.getDocumentDOM().getTimeline().layers[0].visible = false;
310
Objects
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers