# Remove/reset/disable actionscripted filter after an event

**URL:** <https://forum.kirupa.com/t/remove-reset-disable-actionscripted-filter-after-an-event/166324>\
**Category:** Uncategorized\
**Created:** [October 18, 2005, 10:31pm UTC](https://forum.kirupa.com/t/remove-reset-disable-actionscripted-filter-after-an-event/166324 "2005-10-18T22:31:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitras](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nitras/32/1475_2.png) [@nitras](https://forum.kirupa.com/u/nitras)\
**Post date:** [October 18, 2005, 10:31pm UTC](https://forum.kirupa.com/t/remove-reset-disable-actionscripted-filter-after-an-event/166324/1 "2005-10-18T22:31:14Z")

</div>

hi there

while i was experimenting with flash 8 filters again 🙂 i bounce on some problems that i guess are easy solvable, i just don’t know how.

so i have this mc that i control through 1 button  
after it goes to it’s max positions a next click moves the mc back to it’s original position. quite ez, nothing big there.  
i’ve added a filter named BF : as in blur filter.

now the problem is… the filters grows with each click… i don’t want that.  
also i want that the blur filter only activates when i release/ press a button.

can anyone guide me through this?  
as far from now i am through my own knowledge on this.  
oh, i am belgian so : afstand = distance bougeer = the tween function

> 

import flash.filters.BlurFilter;  
var Bf:BlurFilter = new BlurFilter (0,0,2)  
my\_mc.filters = [Bf];

afstand = 0;  
function zetAfstand() {  
afstand = afstand-400;  
if (afstand\<=-2000) {  
afstand = 0;  
}  
}  
function bougeer() {  
my\_mc.tween(“\_y”, afstand, 2, customEasing);  
}

knop.onPress = function() {  
zetAfstand();  
bougeer();  
Bf.blurY += (100-Bf.blurY)/5;  
my\_mc.filters = [Bf];  
vid.filters = [Bf];  
trace(afstand);  
}

kind regards
