Basically, the effect I’m going for is, you click on a button that calls an mc to the stage and blurs everything below it. Within that mc is a button that when clicked, should remove both the mc and the blur filter.
This is the code I have. (Also, just ignore my stupid function names. I pretty much just name them after the next word I hear in the song I’m listening to
Main Timeline:
hint.addEventListener(MouseEvent.CLICK,manipulation);
function manipulation(event:MouseEvent){
this.addChild(newHint);
newHint.x = 121;
newHint.y = 78;
var i:int = this.numChildren - 5;
while(i > 0){
i--;
this.getChildAt(i).filters = BLUR;
}
}
Symbol Definition:
X.addEventListener(MouseEvent.CLICK, main);
function main(event:MouseEvent):void {
MovieClip(root).removeChild(this);
var i:int = this.numChildren - 5;
while(i > 0){
i--;
this.getChildAt(i).filters = [];
}
}
Everything works perfectly except for
var i:int = this.numChildren - 5;
while(i > 0){
i--;
this.getChildAt(i).filters = [];
}
and I don’t have any compiler errors, the stuff just simply won’t unblur. Does anyone have any idea how to do this?