Document object
151
document.setFilters()
Availability
Flash 8.
Usage
document.setFilters(
filterArray
)
Parameters
filterArray
The array of filters currently specified.
Returns
Nothing.
Description
Method; applies filters to the selected objects. Use this method after calling
document.getFilters()
and making any desired changes to the filters.
Example
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);
See also
document.addFilter()
,
document.getFilters()
,
document.setFilterProperty()
,
Filter object
document.setInstanceAlpha()
Availability
Flash MX 2004.
Usage
document.setInstanceAlpha(
opacity
)
Содержание FLASH 8-EXTENDING FLASH
Страница 1: ...Extending Flash...
Страница 38: ...38 Top Level Functions and Methods...
Страница 532: ...532 Objects...
Страница 554: ...554 C Level Extensibility...