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

  • 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 238
217
EXTENDING FLASH CS4 PROFESSIONAL
Filter object
var myFilters = fl.getDocumentDOM().getFilters();
for(i=0; i < myFilters.length; i++){
if(myFilters[i].name == 'glowFilter'){
myFilters[i].strength = 50;
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.setFilterProperty()
filter.type
Availability
Flash 8.
Usage
filter.type
Description
Property; a string that specifies the type of bevel or glow. Acceptable values are "inner", "outer", and "full". This
property is defined for Filter objects with a value of
"bevelFilter", "gradientGlowFilter", or
"gradientBevelFilter" for the filter.name property.
Example
The following example sets the type to "full" for all Bevel filters on the selected object(s):
var myFilters = fl.getDocumentDOM().getFilters();
for(i=0; i < myFilters.length; i++){
if(myFilters[i].name == 'bevelFilter'){
myFilters[i].type = 'full';
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.setFilterProperty()
Zobrazit stránku 238
1 2 ... 234 235 236 237 238 239 240 241 242 243 244 ... 559 560

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

Žádné komentáře