how to clear the blur filter?
I am using the following code to blur a movieclip
function blurMe(blurX, blurY) {
import flash.filters.BlurFilter;
quality = 1;
filter = new BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
filterArray = [];
this.cacheAsBitmap = false;
}
}
}
itWorks great, but I can't seem to get the blur to turn off completely. If I set the blurX&Y to 0 the Help DOCs say it will not apply a blur filter, but while there is not visual blur, I am still experiencing the FPS hit as if the movie clip where blurred.
The Help DOCs also frequently reference "clearing" the filter. I assume that means assigning it to an empty array as I have tried here, but the FPS hit is still there.
Anyone know how to clear it and get back my FPS after using the blur?