Adobe Extending Flash Professional CS5 Manual de usuario Pagina 237

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 565
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 236
215
EXTENDING FLASH PROFESSIONAL
Filter object
Last updated 5/2/2011
filter.shadowColor
Availability
Flash 8.
Usage
filter.shadowColor
Description
Property; the color of the shadow, 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 "bevelFilter" for the filter.name property.
Example
The following example sets the shadow color to "#ff00003e" for the 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].shadowColor = '#ff00003e';
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.setFilterProperty()
filter.strength
Availability
Flash 8.
Usage
filter.strength
Description
Property; an integer that specifies the percentage strength of the filter. Acceptable values are between 0 and 25,500.
This property is defined for Filter objects with a value of
"bevelFilter", "dropShadowFilter", "glowFilter",
"gradientGlowFilter", or "gradientBevelFilter" for the filter.name property.
Example
The following example sets the strength to 50 for the Glow filters on the selected object(s):
Vista de pagina 236
1 2 ... 232 233 234 235 236 237 238 239 240 241 242 ... 564 565

Comentarios a estos manuales

Sin comentarios