Flash 8.
document.setFilters(filterArray)
filterArray The array of filters currently specified.
Nothing.
Method; applies filters to the selected objects. Use this method after calling document.getFilters() and making any desired changes to the filters.
The following example gets the filters on the selected object and sets the blurX property for all Blur filters to 50:
var myFilters = fl.getDocumentDOM().getFilters();
for (i=0; i < myFilters.length; i++) {
if (myFilters[i].name == "blurFilter")
{
myFilters[i].blurX = 50;
}
}
fl.getDocumentDOM().setFilters(myFilters);document.addFilter(), document.getFilters(), document.setFilterProperty(), Filter object