element.layer

#### Availability

Flash 8.

#### Usage

element.layer

#### Description

Read-only property; represents the Layer object (../Layer_object/layer_summary.md) on which the element is located.

#### Example

javascript
The following example stores the Layer object that contains the element in the theLayer variable:

var theLayer = element.layer;