MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 307

Extending flash
Table of Contents

Advertisement

layer.frames
Availability
Flash MX 2004.
Usage
layer.frames
Description
Read-only property; an array of Frame objects (see
Example
The following example sets the variable
frames in the current document:
var frameArray = fl.getDocumentDOM().getTimeline().layers[0].frames;
To determine if a frame is a keyframe, check whether the
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.
Frame
object).
to the array of Frame objects for the
frameArray
frame.startFrame
property
Layer object
307

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents