# Align stage problem

**URL:** https://forum.kirupa.com/t/align-stage-problem/163710
**Category:** Uncategorized
**Created:** [September 25, 2005, 12:27pm UTC](https://forum.kirupa.com/t/align-stage-problem/163710 "2005-09-25T12:27:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pateucopt](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@pateucopt](https://forum.kirupa.com/u/pateucopt)
#### Post date: [September 25, 2005, 12:27pm UTC](https://forum.kirupa.com/t/align-stage-problem/163710/1 "2005-09-25T12:27:30Z")

</div>

hi! i have align the stage of this site in the middle.the swf scales 100% to the browser.i use this script to align the other things to the corners.but then the stage won t align to center.anyone can help?i have to finish until tomorow.for school.please help.here s the script:

\*\*var stageListener:Object = new Object ();  
stageListener.onResize = function ()  
{  
stageSize\_txt.text = “Stage.width:” + Stage.width + " Stage.height:" + Stage.height;

```
// position mc's
tl_mc._x = tl_mc._y = 0;
tr_mc._x = Stage.width - tr_mc._width;
tr_mc._y = 0;
bl_mc._x = 0;
bl_mc._y = Stage.height - bl_mc._height;
br_mc._x = Stage.width - br_mc._width;
br_mc._y = Stage.height - br_mc._height;

```

};  
Stage.scaleMode = “noScale”;  
Stage.align = “TL”;  
Stage.addListener (stageListener);  
// call resize function  
stageListener.onResize();

\*\*
