User Guide

482 Objects
Description
Read-only property; an integer that represents the number of frames in this timelines
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 273 for a complete list of properties.
startFrameIndex A zero-based index that specifies the starting frame number for which to
get the value. If you omit
startFrameIndex, the method uses the current selection. This
parameter is optional.
endFrameIndex A zero-based index that specifies the end of the range of frames to select.
The range goes up to, but does not include,
endFrameIndex. If you specify only
startFrameIndex, endFrameIndex defaults to the value of startFrameIndex. This
parameter is optional.
Returns
A value for the specified property, or undefined if all the selected frames do not have the
same property value.
Description
Method; retrieves the specified propertys value for the selected frames.