Answered
How To Get That Elusive Yellow Glow?
I want to make a short animated logo in which part of the
logo has a pulsating glow whilst a melodramatic sound plays in the
background. I took the following code from the helpfile and tweeked
it. What I'd like is a pulsating yellow glow... but all I get is
some error I can't fix;
[code]
box_mc.filters = [new flash.filters.GlowFilter(color:0xF0F727)];
var dir:Number = 2;
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;
};
[/code]
Error:
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: ')' or ',' expected
box_mc.filters = [new flash.filters.GlowFilter(color:0xF0F727)];
Total ActionScript Errors: 1 Reported Errors: 1
You know, if yellow was the default glow colour, I wouldn't have this problem...
[code]
box_mc.filters = [new flash.filters.GlowFilter(color:0xF0F727)];
var dir:Number = 2;
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;
};
[/code]
Error:
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: ')' or ',' expected
box_mc.filters = [new flash.filters.GlowFilter(color:0xF0F727)];
Total ActionScript Errors: 1 Reported Errors: 1
You know, if yellow was the default glow colour, I wouldn't have this problem...
