Property
element.locked
element.matrix
element.name
element.selected
element.top
element.width
element.depth
Availability
Flash MX 2004.
Usage
element.depth
Description
Read-only property; an integer that has a value greater than 0 for the depth of the object in
the view. The drawing order of objects on the Stage specifies which one is on top of the
others. Object order can also be managed with the Modify > Arrange menu item.
Example
The following example displays the depth of the specified element in the Output panel:
// Select an object and run this script.
fl.trace("Depth of selected object: " +
fl.getDocumentDOM().selection[0].depth);
See the example for
element.elementType
194
Objects
Description
A Boolean value:
true
otherwise.
A
Matrix
object. The
matrix
and
are floating-point values;
ty. a, b, c, d
coordinates.
A string that specifies the name of the element, normally
referred to as the Instance name.
A Boolean value that specifies whether the element is
selected or not.
Read-only; top side of the element.
A float value that specifies the width of the element in
pixels.
.
if the element is locked;
has properties
a, b, c, d, tx
false
,
and
are
tx
ty
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?