MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 306

Extending flash
Table of Contents

Advertisement

layer.color
Availability
Flash MX 2004.
Usage
layer.color
Description
Property; the color assigned to outline the layer, in one of the following formats:
A string in the format
A hexadecimal number in the format
An integer that represents the decimal equivalent of a hexadecimal number
This property is equivalent to the Outline color setting in the Layer Properties dialog box.
Example
The following example stores the value of the first layer in the
var colorValue = fl.getDocumentDOM().getTimeline().layers[0].color;
The following example shows three ways to set the color of the first layer to red:
fl.getDocumentDOM().getTimeline().layers[0].color=16711680;
fl.getDocumentDOM().getTimeline().layers[0].color="#ff0000";
fl.getDocumentDOM().getTimeline().layers[0].color=0xFF0000;
layer.frameCount
Availability
Flash MX 2004.
Usage
layer.frameCount
Description
Read-only property; an integer that specifies the number of frames in the layer.
Example
The following example stores the number of frames in the first layer in the
var fcNum = fl.getDocumentDOM().getTimeline().layers[0].frameCount;
306
Objects
or
"#RRGGBB"
"#RRGGBBAA"
0xRRGGBB
variable:
colorValue
variable:
fcNum

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents