# Glow effect

**URL:** <https://forum.kirupa.com/t/glow-effect/220898>\
**Category:** Uncategorized\
**Created:** [March 30, 2007, 6:16am UTC](https://forum.kirupa.com/t/glow-effect/220898 "2007-03-30T06:16:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xln](https://avatars.discourse-cdn.com/v4/letter/x/c5a1d2/32.png) [@xln](https://forum.kirupa.com/u/xln)\
**Post date:** [March 30, 2007, 6:16am UTC](https://forum.kirupa.com/t/glow-effect/220898/1 "2007-03-30T06:16:28Z")

</div>

import flash.filters.GlowFilter;  
var gf:GlowFilter = new GlowFilter(0xFF3333, 100, 100,100, 5, 3, false, false);  
kText.filters = [gf];  
kText.onRollOver = function() {  
this.onEnterFrame = function() {  
if (gf.blurX \< 20) {  
gf.blurX++;  
gf.blurY++;  
} else {  
delete this.onEnterFrame;  
}  
this.filters = [gf];  
};  
};  
kText.onRollOut = function() {  
this.onEnterFrame = function() {  
this.filters = [gf];  
if (gf.blurX \> 3) {  
gf.blurX–;  
gf.blurY–;  
} else {  
delete this.onEnterFrame;  
}  
};  
};

i use the above code for the glow effect, i want the effect to load automatically rather than when i hover my mouse over it. how to edit the code to do it?
