element.layer

Availability

Flash 8.

Usage

element.layer

Description

Read-only property; represents the Layer object on which the element is located.

Example

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

var theLayer = element.layer;