Adding a Flash filter as an effect with BitmapLayerEffect
The final effect is one that takes a generic Flash filter. You first instantiate a filter, which you then simply pass to the constructor of BitmapLayerEffect:
var blur:BlurFilter = new BlurFilter(7,7); Flash filteradding, BitmapLayerEffect usedbmLayerEffect = new BitmapLayerEffect(blur); bitmapEffectLayer.addEffect(bmLayerEffect);
Note that not passing the quality parameter to the filter defaults to low quality. Uncomment the line with the setScroll() method. The following screenshot shows the result with the blur filter:

Combining effects
You can add multiple effects to an effect layer—for instance, if you want a more subtle result. To add the color effect and the bitmap layer effect that we just discussed, simply use the following code:
bitmapEffectLayer.addEffect(bmColorEffect); bitmapEffectLayer.addEffect(bmLayerEffect);
The next screenshot shows the cube with both the effects applied to it, which results in a blurred, blue trail...