User Guide
Timeline object 489
Description
Read-only property; an array of layer objects.
Example
The following example uses the currentLayers variable to store the array of layer objects in
the current document:
var currentLayers = fl.getDocumentDOM().getTimeline().layers;
timeline.name
Availability
Flash MX 2004.
Usage
timeline.name
Description
Property; a string that specifies the name of the current timeline. This name is the name of the
current scene, screen (slide or form), or symbol that is being edited.
Example
The following example retrieves the first scene name:
var sceneName = fl.getDocumentDOM().timelines[0].name;
The following example sets the first scene name to FirstScene:
fl.getDocumentDOM().timelines[0].name = "FirstScene";
timeline.pasteFrames()
Availability
Flash MX 2004.
Usage
timeline.pasteFrames([startFrameIndex [, endFrameIndex]])