Extending Flash |
|
|
|
| Objects > Filter object > filter.color | |||
Flash 8.
filter.color
Property; the color of the filter, in one of the following formats:
"#RRGGBB" or "#RRGGBBAA"0xRRGGBBThis property is defined for Filter objects with a value of "dropShadowFilter" or "glowFilter" for the filter.name property.
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);
|
|
|
|