Flash MX 2004.
timeline.layers
Read-only property; an array of layer objects.
The following example uses the currentLayers variable to store the array of layer objects in the current document:
var currentLayers = fl.getDocumentDOM().getTimeline().layers;