Extending Flash |
|
|
|
| Objects > Layer object > layer.color | |||
Flash MX 2004.
layer.color
Property; the color assigned to outline the layer, in one of the following formats:
"#RRGGBB" or "#RRGGBBAA"0xRRGGBBThis property is equivalent to the Outline color setting in the Layer Properties dialog box.
The following example stores the value of the first layer in the colorValue variable:
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;
|
|
|
|