Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 581 Bytes

File metadata and controls

26 lines (16 loc) · 581 Bytes

timeline.currentLayer

Availability

Flash MX 2004.

Usage

timeline.currentLayer

Description

Property; the zero-based index for the currently active layer. A value of 0 specifies the top layer, a value of 1 specifies the layer below it, and so on.

Example

The following example makes the top layer active:

fl.getDocumentDOM().getTimeline().currentLayer = 0;

The following example stores the index of the currently active layer in the curLayer variable:

var curLayer = fl.getDocumentDOM().getTimeline().currentLayer;