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

  • 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 165
144
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
value A number or string specifying the value to be set for the specified filter property. Acceptable values depend on
the property and the filter being set.
Returns
Nothing.
Description
Method; sets a specified filter property for the currently selected objects (assuming that the object supports the
specified filter).
Example
The following example sets the quality property to 2 for the second filter (index value of 1) in the Filters list of the
selected objects and then sets the shadowColor property of the first filter in the Filters list on the selected object(s):
fl.getDocumentDOM().setFilterProperty("quality", 1, 2);
fl.getDocumentDOM().setFilterProperty("shadowColor", 0, "#FF00FF");
See also
document.addFilter(), document.getFilters(), document.setBlendMode(), document.setFilters(), Filter
object
document.setFilters()
Availability
Flash 8.
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:
Zobrazit stránku 165
1 2 ... 161 162 163 164 165 166 167 168 169 170 171 ... 564 565

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

Žádné komentáře