# Animating filter effects, how would I slow the speed?

**URL:** <https://forum.kirupa.com/t/animating-filter-effects-how-would-i-slow-the-speed/215565>\
**Category:** flash\
**Created:** [February 8, 2007, 7:50am UTC](https://forum.kirupa.com/t/animating-filter-effects-how-would-i-slow-the-speed/215565 "2007-02-08T07:50:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quizosde](https://avatars.discourse-cdn.com/v4/letter/q/d9b06d/32.png) [@Quizosde](https://forum.kirupa.com/u/Quizosde)\
**Post date:** [February 8, 2007, 7:50am UTC](https://forum.kirupa.com/t/animating-filter-effects-how-would-i-slow-the-speed/215565/1 "2007-02-08T07:50:41Z")

</div>

Hello, I’m learning about animating filter effects from the tutorial here:  
[http://www.kirupa.com/developer/flash8/filter\_effects.htm](http://www.kirupa.com/developer/flash8/filter_effects.htm)

My question is, how would I change the speed of the effect and slow it down.  
The problem is I’m only changing the strength of glowfilter from 0 to 2 on a mouseover, and since the code adds one 1 to it every frame, its a little choppy.  
Here’s my code:

```auto
    import flash.filters.GlowFilter;
    var gf:GlowFilter = new GlowFilter(0xFFFFFF, 100, 3, 3, 0, 3, false, false);
    bar_mc.stackedWord.filters = [gf];
    bar_mc.stackedWord.onRollOver = function() {

    this.onEnterFrame = function() {

    if (gf.strength < 2) {

    gf.strength++;
    } else {

    delete this.onEnterFrame;

    }
    this.filters = [gf];

    };

    };
    bar_mc.stackedWord.onRollOut = function() {

    this.onEnterFrame = function() {

    this.filters = [gf];
    if (gf.strength > 0) {

    gf.strength--;

    } else {

    delete this.onEnterFrame;

    }

    };

    };

```

Any help would be appreciated!  
Thanks
