Layer object
305
Layer object
Availability
Flash MX 2004.
Description
The Layer object represents a layer in the timeline. The
timeline.layers
property contains
an array of Layer objects, which can be accessed by
fl.getDocumentDOM().getTimeline().layers
.
Property summary for the Layer object
The following properties are available for the Layer object:
Property
Description
layer.color
A string, hexadecimal value, or integer that specifies the color assigned
to outline the layer.
layer.frameCount
Read-only; an integer that specifies
the
number of frames in the layer.
layer.frames
Read-only; an array of Frame objects.
layer.height
An integer that specifies the percentage layer height; equivalent to the
Layer height value in the Layer Properties dialog box.
layer.layerType
A string that specifies the current use of the layer; equivalent to the Type
setting in the Layer Properties dialog box.
layer.locked
A Boolean value that specifies the
locked status of the layer.
layer.name
A string that specifies t
he
name of the layer.
layer.outline
A Boolean value that specifies the status of outlines for all objects in
the layer.
layer.parentLayer
A Layer object that represents the layer’s containing folder, guiding, or
masking layer.
layer.visible
A Boolean value that specifies whether the layer’s objects on the Stage
are shown or hidden.
CHAPTER 24
Objects
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...