Timeline object
335
Returns
An array of index values for the specified layer. If the specified layer is not found, Flash returns
undefined
.
Description
Method; finds an array of indexes for the layers with the given name. The layer index is flat, so
folders are considered part of the main index.
Example
The following example shows the index values of all layers named Layer 7 in the Output panel:
var layerIndex = fl.getDocumentDOM().getTimeline().findLayerIndex("Layer 7");
fl.trace(layerIndex);
The following example illustrates how to pass the values returned from this method back to
timeline.setSelectedLayers()
:
var layerIndex = fl.getDocumentDOM().getTimeline().findLayerIndex("Layer 1");
fl.getDocumentDOM().getTimeline().setSelectedLayers(layerIndex[0], true);
timeline.frameCount
Availability
Flash MX 2004.
Usage
timeline.frameCount
Description
Read-only property; an integer that represents the number of frames in this Timeline’s longest
layer.
Example
The following example uses a
countNum
variable to store the number of frames in the current
document’s longest layer:
var countNum = fl.getDocumentDOM().getTimeline().frameCount;
timeline.getFrameProperty()
Availability
Flash MX 2004.
Usage
timeline.getFrameProperty(
property
[,
startframeIndex
[,
endFrameIndex
]])
Parameters
property
A string that specifies the name of the property for which to get the value. See
“Property summary for the Frame object” on page 185
for a complete list of properties.
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...