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

  • 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 161
140
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
Returns
Nothing.
Description
Method; sets the blending mode for the selected objects.
Example
The following example sets the blending mode for the selected object to "add".
fl.getDocumentDOM().setBlendMode("add");
See also
document.addFilter(), document.setFilterProperty(), symbolInstance.blendMode
document.setCustomFill()
Availability
Flash MX 2004.
Usage
document.setCustomFill(fill)
Parameters
fill A Fill object that specifies the fill settings to be used. See Fill object.
Returns
Nothing.
Description
Method; sets the fill settings for the Tools panel, Property inspector, and any selected shapes. This allows a script to set
the fill settings before drawing the object, rather than drawing the object, selecting it, and changing the fill settings. It
also lets a script change the Tools panel and Property inspector fill settings.
Example
The following example changes the color of the fill color swatch in the Tools panel, Property inspector, and any
selected shapes to white:
var fill = fl.getDocumentDOM().getCustomFill();
fill.color = '#FFFFFF';
fill.style = "solid";
fl.getDocumentDOM().setCustomFill(fill);
See also
document.getCustomFill()
Zobrazit stránku 161
1 2 ... 157 158 159 160 161 162 163 164 165 166 167 ... 564 565

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

Žádné komentáře