Adobe Extending Flash Professional CS5 Instrukcja Użytkownika Strona 236

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 565
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 235
214
EXTENDING FLASH PROFESSIONAL
Filter object
Last updated 5/2/2011
Usage
filter.quality
Description
Property; a string that specifies the blur quality. Acceptable values are "low", "medium", and "high" ("high" is
similar to a Gaussian blur). This property is defined for Filter objects with a value of
"bevelFilter", "blurFilter",
"dropShadowFilter", "glowFilter", "gradientGlowFilter", or "gradientBevelFilter" for the filter.name
property.
Example
The following example sets the blur quality to "medium" 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].quality = 'medium';
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.setFilterProperty()
filter.saturation
Availability
Flash 8.
Usage
filter.saturation
Description
Property; a float value that specifies the saturation value of the filter. Acceptable values are from -100 to 100. This
property is defined for Filter objects with a value of
"adjustColorFilter" for the filter.name property.
Example
The following example sets the saturation value to -100 (grayscale) for the Adjust Color filters on the selected object(s):
var myFilters = fl.getDocumentDOM().getFilters();
for(i=0; i < myFilters.length; i++){
if(myFilters[i].name == 'adjustColorFilter'){
myFilters[i].saturation = 0-100;
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.setFilterProperty()
Przeglądanie stron 235
1 2 ... 231 232 233 234 235 236 237 238 239 240 241 ... 564 565

Komentarze do niniejszej Instrukcji

Brak uwag