# Problem with filters and scaling

**URL:** https://forum.kirupa.com/t/problem-with-filters-and-scaling/189795
**Category:** flash
**Created:** [June 6, 2006, 10:45am UTC](https://forum.kirupa.com/t/problem-with-filters-and-scaling/189795 "2006-06-06T10:45:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sumo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sumo/32/1950_2.png) [@sumo](https://forum.kirupa.com/u/sumo)
#### Post date: [June 6, 2006, 10:45am UTC](https://forum.kirupa.com/t/problem-with-filters-and-scaling/189795/1 "2006-06-06T10:45:44Z")

</div>

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:

```auto

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
