Hi,

I am creating an interactive canvas where a user can click on items (movie clips) in the canvas and the movie zooms in and displays the item.

The problem is when I add filters to these items some of them disappear in a min or so.

here is the code:

public function setEffects(){
var BackValue = MovieClip(root).BackZ;
var halfChange = BackValue / 2;
var newBlur = 0
var ch = halfChange / 7;
var glowAlpha = 0;

if(MovieClip(root).singleton && !focusMe){
newBlur = 7;
glowAlpha = 0.8;
} else if(halfChange < this.z){
newBlur = Math.round((this.z - halfChange) / ch);
glowAlpha = 0.6;
} else {
newBlur = 0
}

autoUpdateEffects++;

if(autoUpdateEffects >= 50){
autoUpdateEffects = 0;

if(effectsMovement){
this.z++;
} else {
this.z--;
}
//trace("Updated effects: " + itemLocation.number + " " + itemLocation.array);

effectsMovement = !effectsMovement;
}

if(newBlur != blurEffect){
blurEffect = newBlur;

autoUpdateEffects = 0;

if(blurEffect != 0){
blur = new BlurFilter();
blur.blurX = newBlur;
blur.blurY = newBlur;
blur.quality = BitmapFilterQuality.LOW;

myGlowFilter = new GlowFilter;
myGlowFilter.color = 0xBA0A00;
myGlowFilter.alpha = glowAlpha;
myGlowFilter.blurX = 255;
myGlowFilter.blurY = 255;
myGlowFilter.inner = true;
myGlowFilter.quality = BitmapFilterQuality.LOW;

this.filters = [blur, myGlowFilter];

} else {
this.filters = [];
}
}
}

this gets called on enter frame.
Does anyone have any ideas?