# Glowing Button Changing Color?

**URL:** <https://forum.kirupa.com/t/glowing-button-changing-color/199056>\
**Category:** flash\
**Created:** [August 30, 2006, 7:43pm UTC](https://forum.kirupa.com/t/glowing-button-changing-color/199056 "2006-08-30T19:43:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mw2006](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@mw2006](https://forum.kirupa.com/u/mw2006)\
**Post date:** [August 30, 2006, 7:43pm UTC](https://forum.kirupa.com/t/glowing-button-changing-color/199056/1 "2006-08-30T19:43:12Z")

</div>

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;  
};
