Flash CS3 Documentation |
|||
| Extending Flash > Objects > Fill object > fill.style | |||
Flash MX 2004.
fill.style
Property; a string that specifies the fill style. Acceptable 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.
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 CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00004099.html