Hi all. I found a great tutorial on a glowing effect for a button that is perfect for what I need – however, when the effect is done – I’m always stuck with a red glow instead of a custom color. The code is attached below, can someone tell me how I would go about setting up a different color than red for this effect on a button?? Thanks!
box_mc.filters = [new flash.filters.GlowFilter()];
var dir:Number = 1;
box_mc.blur = 10;
box_mc.onEnterFrame = function() {
box_mc.blur += dir;
if ((box_mc.blur>=30) || (box_mc.blur<=10)) {
dir *= -1;
}
var filter_array:Array = box_mc.filters;
filter_array[0].blurX = box_mc.blur;
filter_array[0].blurY = box_mc.blur;
box_mc.filters = filter_array;
};