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

  • 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 234
213
EXTENDING FLASH PROFESSIONAL
Filter object
Last updated 5/2/2011
Example
The following example sets the knockout property to true for the Glow filters on the selected object(s):
var myFilters = fl.getDocumentDOM().getFilters();
for(i=0; i < myFilters.length; i++){
if(myFilters[i].name == 'glowFilter'){
myFilters[i].knockout = true;
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.setFilterProperty()
filter.name
Availability
Flash 8.
Usage
filter.name
Description
Read-only property; a string that specifies the type of filter. The value of this property determines which other
properties of the Filter object are available. The value is one of the following:
"adjustColorFilter",
"bevelFilter", "blurFilter", "dropShadowFilter", "glowFilter", "gradientBevelFilter", or
"
gradientGlowFilter".
Example
The following example displays the filter names and index positions in the Output panel:
var myFilters = fl.getDocumentDOM().getFilters();
var traceStr = "";
for(i=0; i < myFilters.length; i++){
traceStr = traceStr + " At index " + i + ": " + myFilters[i].name;
}
fl.trace(traceStr);
See also
document.getFilters(), document.setFilterProperty()
filter.quality
Availability
Flash 8.
Zobrazit stránku 234
1 2 ... 230 231 232 233 234 235 236 237 238 239 240 ... 564 565

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

Žádné komentáře