Timeline object
341
Example
The following example uses the
NumLayer
variable to store the number of layers in the current
scene:
var NumLayer = fl.getDocumentDOM().getTimeline().layerCount;
timeline.layers
Availability
Flash MX 2004.
Usage
timeline.layers
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 MX 2004-FLASH JAVASCRIPT DICTIONARY
Page 1: ...Flash JavaScript Dictionary ...
Page 16: ...16 Contents ...
Page 40: ...40 Chapter 2 Top level functions ...
Page 368: ...368 Chapter 3 Objects ...