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

javascript
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 (../Element_object/element1.md).