# Pixel font problem in centered mc in full browser flash

**URL:** <https://forum.kirupa.com/t/pixel-font-problem-in-centered-mc-in-full-browser-flash/302630>\
**Category:** flash\
**Created:** [January 4, 2010, 4:04pm UTC](https://forum.kirupa.com/t/pixel-font-problem-in-centered-mc-in-full-browser-flash/302630 "2010-01-04T16:04:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erik\_24](https://avatars.discourse-cdn.com/v4/letter/e/a587f6/32.png) [@Erik\_24](https://forum.kirupa.com/u/Erik_24)\
**Post date:** [January 4, 2010, 4:04pm UTC](https://forum.kirupa.com/t/pixel-font-problem-in-centered-mc-in-full-browser-flash/302630/1 "2010-01-04T16:04:15Z")

</div>

I’m trying to use a pixel font in a mc in a full browser flash.  
At some browser sizes it looks fine but at others it’s blurred. I’m guessing that it’s because the mc uses the browser window width and heigth/2 to find the middle of the stage.  
But at some sizes the half of the browser windows becomes an uneven number, which is blurring the pixel font. I’m I right? (the pixel font is in the mcSite mc)

How can I solve this?

My code:

Stage.scaleMode = ‘noScale’;  
Stage.align = ‘TL’;

myListener = new Object();  
myListener.onResize = function() {  
sw = Stage.width;  
sh = Stage.height;  
background.\_width = sw;  
background.\_height = sh;  
hsh = sh/2;  
hsw = sw/2;

```
mcSite._y = hsh-mcSite._height/2;
mcSite._x = hsw-mcSite._width/2;

};

```

Stage.addListener(myListener);  
myListener.onResize();
