160
Chapter 3: Objects
fill.posArray = [0, 100, 200];
fl.getDocumentDOM().setCustomFill( fill );
fill.style
Availability
Flash MX 2004.
Usage
fill.style
Description
Property; a string that specifies the fill style. Valid values are:
"solid"
,
"linearGradient"
,
"radialGradient"
, and
"noFill"
. If an object has no fill, this property has a value of
"
noFill
"
.
If this value is
"linearGradient"
or
"radialGradient"
, the properties
fill.colorArray
and
fill.posArray
are also available.
Example
The following example specifies the colors to use in a linear gradient for the current selection:
var fill = fl.getDocumentDOM().getCustomFill();
fill.style= "linearGradient";
fill.colorArray = [ 0x00ff00, 0xff0000, 0x0000ff ];
fill.posArray = [0, 100, 200];
fl.getDocumentDOM().setCustomFill( fill );
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...