Layer object
307
layer.frames
Availability
Flash MX 2004.
Usage
layer.frames
Description
Read-only property; an array of Frame objects (see
Frame object
).
Example
The following example sets the variable
frameArray
to the array of Frame objects for the
frames in the current document:
var frameArray = fl.getDocumentDOM().getTimeline().layers[0].frames;
To determine if a frame is a keyframe, check whether the
frame.startFrame
property
matches the array index, as shown in the following example:
var frameArray = fl.getDocumentDOM().getTimeline().layers[0].frames;
var n = frameArray.length;
for (i=0; i<n; i++) {
if (i==frameArray[i].startFrame) {
alert("Keyframe at: " + i);
}
}
layer.height
Availability
Flash MX 2004.
Usage
layer.height
Description
Property; an integer that specifies the percentage layer height; equivalent to the Layer height
value in the Layer Properties dialog box. Acceptable values represent percentages of the default
height: 100, 200, or 300.
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...