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?