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
]])
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...