Adobe Extending Flash Professional CS4 Manuale Utente Pagina 225

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 560
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 224
203
EXTENDING FLASH CS4 PROFESSIONAL
Fill object
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.
Vedere la pagina 224
1 2 ... 220 221 222 223 224 225 226 227 228 229 230 ... 559 560

Commenti su questo manuale

Nessun commento