Adobe Extending Flash Professional CS5 Manuale Utente Pagina 231

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 230
209
EXTENDING FLASH PROFESSIONAL
Filter object
Last updated 5/2/2011
Usage
filter.contrast
Description
Property; a float value that specifies the contrast value of the filter. Acceptable values are between -100 and 100. This
property is defined for Filter objects with a value of
"adjustColorFilter" for the filter.name property.
Example
The following example sets the contrast value to -15.5 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].contrast = -15.5;
}
}
fl.getDocumentDOM().setFilters(myFilters);
filter.distance
Availability
Flash 8.
Usage
filter.distance
Description
Property; a float value that specifies the distance between the filter’s effect and an object, in pixels. Acceptable values
are from -255 to 255. This property is defined for Filter objects with a value of
"bevelFilter", "dropShadowFilter",
"gradientBevelFilter", or "gradientGlowFilter" for the filter.name property.
Example
The following example sets the distance to 10 pixels for the Drop Shadow filters on the selected object(s):
var myFilters = fl.getDocumentDOM().getFilters();
for(i=0; i < myFilters.length; i++){
if(myFilters[i].name == 'dropShadowFilter'){
myFilters[i].distance = 10;
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.setFilterProperty()
Vedere la pagina 230
1 2 ... 226 227 228 229 230 231 232 233 234 235 236 ... 564 565

Commenti su questo manuale

Nessun commento