Resizing Problem

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:


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: