Adobe Extending Flash Professional CS5 Uživatelský manuál Strana 226

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 565
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 225
204
EXTENDING FLASH PROFESSIONAL
Fill object
Last updated 5/2/2011
Description
Property; an array of integers, each in the range of zero to 255, indicating the position of the corresponding color. This
property is available only if the value of the
fill.style property is either "radialGradient" or "linearGradient".
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 );
fill.style
Availability
Flash MX 2004. Value "bitmap" added in Flash CS4 Professional.
Usage
fill.style
Description
Property; a string that specifies the fill style. Acceptable values are "bitmap", "solid", "linearGradient",
"radialGradient", and "noFill".
If this value is "linearGradient" or "radialGradient", the fill.colorArray and fill.posArray properties are
also available. If this value is "bitmap", the fill.bitmapIsClipped and fill.bitmapPath properties 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 );
Zobrazit stránku 225
1 2 ... 221 222 223 224 225 226 227 228 229 230 231 ... 564 565

Komentáře k této Příručce

Žádné komentáře