Extending Flash |
|
|
|
| Objects > Document object > document.addFilter() | |||
Flash 8.
document.addFilter(filterName)
filterName A string specifying the filter to be added to the Filter list and enabled for the selected object(s). Acceptable values are "adjustColorFilter", "bevelFilter", "blurFilter", "dropShadowFilter", "glowFilter", "gradientBevelFilter", and "gradientGlowFilter".
Nothing.
Method; applies a filter to the selected objects and places the filter at the end of the Filter list.
The following example applies a glow filter to the selected object(s):
fl.getDocumentDOM().addFilter("glowFilter");
document.changeFilterOrder(), document.disableFilter(), document.enableFilter(), document.getFilters(), document.removeFilter(), document.setBlendMode(), document.setFilterProperty()
|
|
|
|