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

  • 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 223
202
EXTENDING FLASH PROFESSIONAL
Fill object
Last updated 5/2/2011
Example
The following example sets the focal point of a radial gradient for the current selection to 100 pixels to the right of the
shape’s center:
var fill = fl.getDocumentDOM().getCustomFill();
fill.style = "radialGradient";
fill.colorArray = ["#00ff00","#ff00ff"];
fill.posArray = [0, 255];
fill.focalPoint = 10100;
fl.getDocumentDOM().setCustomFill(fill);
fill.linearRGB
Availability
Flash 8.
Usage
fill.linearRGB
Description
Property; a Boolean value that specifies whether to render the fill as a linear or radial RGB gradient. Set this property
to
true to specify a linear interpolation of a gradient; set it to false to specify a radial interpolation of a gradient. The
default value is
false.
Example
The following example specifies that the gradient of the current selection should be rendered with a linear RGB:
var fill = fl.getDocumentDOM().getCustomFill();
fill.linearRGB style = true"radialGradient";
fill.colorArray = ["#00ff00","#ff00ff"];
fill.posArray = [0, 255];
fill.focalPoint = 100;
fill.linearRGB = true;
fl.getDocumentDOM().setCustomFill(fill);
fill.matrix
Availability
Flash MX 2004.
Usage
fill.matrix
Description
Property; a Matrix object that defines the placement, orientation, and scales for gradient fills.
Zobrazit stránku 223
1 2 ... 219 220 221 222 223 224 225 226 227 228 229 ... 564 565

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

Žádné komentáře