# Glow Filter Loop (Canadian Tutorial)

**URL:** <https://forum.kirupa.com/t/glow-filter-loop-canadian-tutorial/219441>\
**Category:** flash\
**Created:** [March 16, 2007, 2:24pm UTC](https://forum.kirupa.com/t/glow-filter-loop-canadian-tutorial/219441 "2007-03-16T14:24:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimitree](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dimitree/32/2530_2.png) [@Dimitree](https://forum.kirupa.com/u/Dimitree)\
**Post date:** [March 16, 2007, 2:24pm UTC](https://forum.kirupa.com/t/glow-filter-loop-canadian-tutorial/219441/1 "2007-03-16T14:24:20Z")

</div>

Based on this very good tutorial by Canadian [http://www.kirupa.com/developer/flash8/filter\_effects2.htm](http://www.kirupa.com/developer/flash8/filter_effects2.htm)

I would like to have the filter onEnterframe and when it goes for ex. up blurX equal to 20 it would go gf.blurX–; until it reaches 0 , and then loop up to 20 and so on.  
Can anyone help?

I have used this code so far dont know how to continue:

```auto

import flash.filters.GlowFilter; 
var gf:GlowFilter = new GlowFilter(0x356D83, 100, 3, 3, 5, 3, false, false); 
kText.filters = [gf]; 
kText.onEnterFrame = function() { 
if (gf.blurX < 10) { 
gf.blurX++; 
gf.blurY++; 
} 
if (gf.blurY >3) function(){ 
gf.blurX--; 
gf.blurY--; 
} 
kText.filters = [gf]; 
 
};  

```
