# Increase the Blur value when click a button

**URL:** https://forum.kirupa.com/t/increase-the-blur-value-when-click-a-button/282560
**Category:** Uncategorized
**Created:** [February 23, 2009, 6:35pm UTC](https://forum.kirupa.com/t/increase-the-blur-value-when-click-a-button/282560 "2009-02-23T18:35:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![smallDot](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@smallDot](https://forum.kirupa.com/u/smallDot)
#### Post date: [February 23, 2009, 6:35pm UTC](https://forum.kirupa.com/t/increase-the-blur-value-when-click-a-button/282560/1 "2009-02-23T18:35:04Z")

</div>

i have a button, if i click it, the man\_mc blurred. i made become blurred but form 0 (unblurred) to 4(blurred), i want to make it apply the blur gradually.

```auto

var blur:Number = 5
var myBlurFilter:BlurFilter = new BlurFilter(4,4,3);
var blurFilterArray:Array = new Array(myBlurFilter);
function applyBlur(e:MouseEvent):void {
    for (var i:Number = 0; i <= blur && i <= blur; i++) {
        or_mc.filters += 1
    }
}
this.small_mc.addEventListener(MouseEvent.CLICK, applyBlur);

```

Thanks
