# Set and degrade blur

**URL:** <https://forum.kirupa.com/t/set-and-degrade-blur/225828>\
**Category:** Uncategorized\
**Created:** [May 16, 2007, 2:49am UTC](https://forum.kirupa.com/t/set-and-degrade-blur/225828 "2007-05-16T02:49:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Icy\_Penguin](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@Icy\_Penguin](https://forum.kirupa.com/u/Icy_Penguin)\
**Post date:** [May 16, 2007, 2:49am UTC](https://forum.kirupa.com/t/set-and-degrade-blur/225828/1 "2007-05-16T02:49:19Z")

</div>

hey all - working on putting a blur on a version of the content scrollbar (when the content moves - its blurred).

so i basically have something like this (simplified):

```auto

contentMc.onEnterFrame = function() {
     if(newY - y ==)) {
            //basically - if content is moving
            setBlur()
     } else {
             //if content is not moving
             clearBlur()
     }
}

```

my question is - since that function is being called on every frame - how can i remove the blur (i also want to just degrade the blur - so from a blurX of 5 down to 4, 3, 2, 1, 0) without it being screwed up because it is called all the tiem?

I can’t just delete the contentMC.onEnterFrame either.

Thanks 🙂
