# Easing filters

**URL:** <https://forum.kirupa.com/t/easing-filters/220646>\
**Category:** Uncategorized\
**Created:** [March 27, 2007, 11:04pm UTC](https://forum.kirupa.com/t/easing-filters/220646 "2007-03-27T23:04:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![plankguy](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@plankguy](https://forum.kirupa.com/u/plankguy)\
**Post date:** [March 27, 2007, 11:04pm UTC](https://forum.kirupa.com/t/easing-filters/220646/1 "2007-03-27T23:04:15Z")

</div>

I just got through the easing tutorial ([http://www.kirupa.com/developer/flash8/easing.htm](http://www.kirupa.com/forum/../developer/flash8/easing.htm)) and thought that a easing filter variation would be awesome. So I began my own easing blur function but I can’t seem to get it to ease the blur, it just applies the blur without the ease…Maybe my brain is just much for the day…

Any ideas what i’m doing wrong?? ::

```auto
import flash.filters.*;
MovieClip.prototype.easeBlur = function(to:Number, speed:Number, endF:Function, endO, endP:Array) {
    var blur:BlurFilter = new BlurFilter(to, to, 3);
    var _this:MovieClip = this;
    _this.filters = [blur];
    var aux:MovieClip = _this.createEmptyMovieClip("easeBlur_aux", 1223);
    var previousBlur:Number = this.blur;
    if (isNaN(speed) || speed == undefined || speed == '' || speed <= 1) {
        speed = 1.2;
    }
    if (_this.blur != to) {
        aux.onEnterFrame = function() {
            _this.blur = to - (to - _this.blur) / speed;
            if (_this.blur == previousBlur) {
                _this.blur = to;
                this.removeMovieClip();
                if (endF) {
                    endF.apply(endO, endP);
                }
            }
            previousBlur = _this.blur;
        };
    } else {
        if (endF) {
            endF.apply(endO, endP);
        }
    }
};

```
