Adobe Extending Flash Professional CS4 Uživatelský manuál Strana 168

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 560
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 167
146
EXTENDING FLASH CS4 PROFESSIONAL
Document object
Usage
document.setFilters(filterArray)
Parameters
filterArray The array of filters currently specified.
Returns
Nothing.
Description
Method; applies filters to the selected objects. Use this method after calling document.getFilters() and making any
desired changes to the filters.
Example
The following example gets the filters on the selected object and sets the blurX property for all Blur filters to 50:
var myFilters = fl.getDocumentDOM().getFilters();
for (i=0; i < myFilters.length; i++) {
if (myFilters[i].name == "blurFilter"){
myFilters[i].blurX = 50;
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.addFilter(), document.getFilters(), document.setFilterProperty(), Filter object
document.setInstanceAlpha()
Availability
Flash MX 2004.
Usage
document.setInstanceAlpha(opacity)
Parameters
opacity An integer between 0 (transparent) and 100 (completely saturated) that adjusts the transparency of the
instance.
Returns
Nothing.
Description
Methods; sets the opacity of the instance.
Example
The following example sets the opacity of the tint to a value of 50:
Zobrazit stránku 167
1 2 ... 163 164 165 166 167 168 169 170 171 172 173 ... 559 560

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

Žádné komentáře