How do I change glow color with this filter AS 3.0 script?
I am so close to being done with my logo. Here is what I have so far followed by the actionscript.
Its 18.1kb
http://www.mpiclub.org/vumpler/test.swf
Code:
import flash.filters.GlowFilter;
var dir:Number = 1;
my_mc.blur = 10;
my_mc.filters = [new GlowFilter()];
my_mc.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
function enterFrameHandler(event:Event):void
{
my_mc.blur += dir;
if ((my_mc.blur >= 30) || (my_mc.blur <= 10)) {
dir *= -1;
}
var filter_array:Array = my_mc.filters;
filter_array[0].blurX = my_mc.blur;
filter_array[0].blurY = my_mc.blur;
my_mc.filters = filter_array;
}
The glow is red, but I don't want it to be red at all. I want it to be a black glow. However everything I've tried doesn't seem to work. I know how to specify the glow color by just using the menu's but it doesn't effect the AS. Is there a code to change it to black?