# Resizing Problem

**URL:** https://forum.kirupa.com/t/resizing-problem/306771
**Category:** flash
**Created:** [March 22, 2010, 9:10am UTC](https://forum.kirupa.com/t/resizing-problem/306771 "2010-03-22T09:10:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![LS05](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@LS05](https://forum.kirupa.com/u/LS05)
#### Post date: [March 22, 2010, 9:10am UTC](https://forum.kirupa.com/t/resizing-problem/306771/1 "2010-03-22T09:10:50Z")

</div>

Hi guys,  
i’ve a very stupid problem. I’ve a central container the must stay in the center of the page with its own dimension but without changing them.  
To make this i have used this actionscript in the first frame of the timeline:

```auto

StageAlign.TOP_LEFT;
StageScaleMode.NO_SCALE;
stop ();
init();
function init():void
        {    
            mcmain.x=stage.stageWidth/2;
            mcmain.y=stage.stageHeight/2;
        }
        
function checkResize():void
        {
            stage.addEventListener(Event.RESIZE, resizeStage);
        }
        
function resizeStage(event:Event):void 
        {
            init();
        }    

```

Now when i see this in the flash player i don’t have any problem but when i see this in the browser page and i scale the browser window the main container scales too. How can i do? :stare:
