Problem with filters and scaling

Hello,

I have a problem with applying filters to a movieclip that is also xscaled to match the stage width. I have a stage listener that re-scales and re-positions my movieclip onResize event. How do I apply a filter to a movieclip that is also scaled?

Here’s my as code:


import flash.filters.*;

Stage.scaleMode = "noScale";
Stage.align = "TL";

var stageL:Object = new Object();

stageL.onResize = function() {
    bottomBar.palkki._xscale = Stage.width;
    bottomBar._x = 0;
    bottomBar._y = Stage.height;
    bottomBar.filters = [gf];
}

Stage.addListener(stageL);

bottomBar._x = 0;
bottomBar._y = Stage.height;
bottomBar.palkki._xscale = Stage.width;

var gf:GlowFilter = new GlowFilter(0x000000, 2, 10, 10, 1, 3, false, false);
bottomBar.filters = [gf];

 

Thanks:panda:,
Sumo