Dynamic blur filters

Hi All

I have a movie in which a movie clip animates for a short while using custom behaviours before blurring slightly using the blur filter. Another movie clip appears, animates and then they both blur. This goes on and on and there are only 7 MCs visible at any one time. Once each MC fully blurs, its properties are set back to normal and the process continues.

Applying the blurFilters to these MCs before they animate causes them to move slowly on my machine (1.7 GHz, 512 RAM). I’m using the following code for each MC.

var myBlur1 = new flash.filters.BlurFilter();
  var myTempFilters1:Array = holder.myMC1.filters;
  myTempFilters1.push(myBlur1);
  holder.myMC1.filters = myTempFilters1;
  var myBlur1 = new flash.filters.BlurFilter(0, 0, 0);
              
  myTempFilters1[0].blurY = 0;
  myTempFilters1[0].blurX = 0;
  myTempFilters1[0].quality = 2;
  holder.myMC1.filters = myTempFilters1;

I found a way to apply the blur filter after the MC has stopped animating. I did this by executing the first 2 lines for each MC first and then after the MC has stopped animating, call the rest of the code. The only problem is that once it has blurred fully and starts over as a new animation, the blurFilter has already been applied and it moves slowly. I’ve tried many methods to remove the filter and then reapply it using the pop(), shift() and push() methods. I’ve tried creating new MCs and applying the blur filters dynamically but it seems that the first 2 lines of code cannot be written into a function.

I’ve been tearing my hair out on this one. Please help someone before I throw my monitor out of the window!

Thanks in advance

Jim