Adobe Extending Flash Professional CS5 Manuale Utente Pagina 234

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 233
212
EXTENDING FLASH PROFESSIONAL
Filter object
Last updated 5/2/2011
var myFilters = fl.getDocumentDOM().getFilters();
for(i=0; i < myFilters.length; i++){
if(myFilters[i].name == 'adjustColorFilter'){
myFilters[i].hue = 120;
}
}
fl.getDocumentDOM().setFilters(myFilters);
filter.inner
Availability
Flash 8.
Usage
filter.inner
Description
Property; a Boolean value that specifies whether the shadow is an inner shadow (true) or not (false). 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 value of the inner 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].inner = true;
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.setFilterProperty()
filter.knockout
Availability
Flash 8.
Usage
filter.knockout
Description
Property; a Boolean value that specifies whether the filter is a knockout filter (true) or not (false). This property is
defined for Filter objects with a value of
"bevelFilter", "dropShadowFilter", "glowFilter",
"gradientBevelFilter", or "gradientGlowFilter" for the filter.name property.
Vedere la pagina 233
1 2 ... 229 230 231 232 233 234 235 236 237 238 239 ... 564 565

Commenti su questo manuale

Nessun commento