Layer.parentlayer; Layer.visible - 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

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
parentLayer
move the layer's position in the list; trying to set a layer's
require moving it has no effect. Uses
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
value is
.
true
Example
The following example makes all objects in the first layer invisible:
fl.getDocumentDOM().getTimeline().layers[0].visible = false;
212
Chapter 3: Objects
of the preceding or following layer. Setting the layer's
null
, all objects in the layer are visible; if
true
parentLayer
for a top-level layer.
false
does not
parentLayer
to a layer that would
, they are hidden. The default

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents