Heya all, long time no see… started to work with as3 again, creating some platformer.
I’ve stumbled on an issue with the display filters, I’m using 2 glowfilters on an object like this:
var glow:GlowFilter = new GlowFilter();
glow.color = 0xffffff;
glow.alpha = .8;
glow.blurX = 120;
glow.blurY = 120;
var outline:GlowFilter = new GlowFilter();
outline.strength = 20;
outline.color = 0x000000;
function someFunction(){
david.char.filters = [outline, glow];
emma.char.filters = [outline, glow];
}
This works perfectly like it should when I publish it for flash player 10, but when I use flash player 9, it fails to apply the filters.
giving me the following error
TypeError: Error #1009: Kan geen eigenschap of methode benaderen via een verwijzing naar een object dat null is.
(Can not access property or method using a reference to an object that is null)
could anyone tell me why this is happening? it seems like it can not find the david mc on the stage, altho I’m pretty sure its there and it works in flash player 10
I’m confused