Adobe Extending Flash Professional CS4 Manuale Utente Pagina 231

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 560
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 230
209
EXTENDING FLASH CS4 PROFESSIONAL
Filter object
Example
The following example sets the brightness to 30.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].brightness = 30.5;
}
}
fl.getDocumentDOM().setFilters(myFilters);
filter.color
Availability
Flash 8.
Usage
filter.color
Description
Property; the color of the filter, in one of the following formats:
A string in the format "#RRGGBB" or "#RRGGBBAA"
A hexadecimal number in the format 0xRRGGBB
An integer that represents the decimal equivalent of a hexadecimal number
This property is defined for Filter objects with a value of "dropShadowFilter" or "glowFilter" for the
filter.name property.
Example
The following example sets the color to "#ff00003e" 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].color = '#ff00003e';
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.setFilterProperty()
filter.contrast
Availability
Flash 8.
Vedere la pagina 230
1 2 ... 226 227 228 229 230 231 232 233 234 235 236 ... 559 560

Commenti su questo manuale

Nessun commento