Add Filters to Display Objects
Flash’s built-in filters (eg. blur/drop shadow) can be applied to display objects and bitmaps, though frankly it feels much more straightforward when you’re applying them to a display object instead of a bitmap. But I haven’t done anything with bitmaps yet … so …
All the filters are part of the flash.filters.* class.
import flash.filters.DropShadowFilter;
// -- [..]
var myClip:MovieClip = new MovieClip();
var shadowFilter:DropShadowFilter = new DropShadowFilter(); // takes a lot of arguments ...
myClip.filters = [shadowFilter]; // filters is an instance variable from the DisplayObject class -- 'tis an Array
// if this was a bitmap (as opposed to a DisplayObject) we'd need to do applyFilter() or something