# Animated filters

**URL:** <https://forum.kirupa.com/t/animated-filters/179239>\
**Category:** flash\
**Created:** [February 17, 2006, 10:55pm UTC](https://forum.kirupa.com/t/animated-filters/179239 "2006-02-17T22:55:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iMat](https://avatars.discourse-cdn.com/v4/letter/i/bbce88/32.png) [@iMat](https://forum.kirupa.com/u/iMat)\
**Post date:** [February 17, 2006, 10:55pm UTC](https://forum.kirupa.com/t/animated-filters/179239/1 "2006-02-17T22:55:47Z")

</div>

Help!

Below, I have a script that fades in when whatever is loading into it reached 100%. The alpha fade scripts (commented out) works well, but I would like to have it unblur into focus instead. So instead of alpha of 0 into an alpha of 100, I would like to try to get a BlurFilter of 16, to a BlurFilter of 0.

Any ideas?

Thanks

onClipEvent (enterFrame) {  
var percentcheck = (this.getBytesLoaded()/this.getBytesTotal())\*100;  
import flash.filters.BlurFilter;  
var bf:BlurFilter = new BlurFilter(16, 16, 3);

```
if (percentcheck == 100) {
    if (bf.blurX&lt;16) {
        bf.blurX--;
        bf.blurY--;
    }
   // if(this._alpha &lt; 100){
   //this._alpha +=5;
   //} 
} else {
    this.filters = [bf];
    //this._alpha = 0;
}

```

}
