# Stage Align Help!

**URL:** <https://forum.kirupa.com/t/stage-align-help/229795>\
**Category:** Uncategorized\
**Created:** [June 20, 2007, 8:58am UTC](https://forum.kirupa.com/t/stage-align-help/229795 "2007-06-20T08:58:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tha10co](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@tha10co](https://forum.kirupa.com/u/tha10co)\
**Post date:** [June 20, 2007, 8:58am UTC](https://forum.kirupa.com/t/stage-align-help/229795/1 "2007-06-20T08:58:26Z")

</div>

Hi I just make a Switch to Flash CS3 and AS3 and one of my favorite tricks in AS2 are Stage Align for swf at fullscreen… and align my elements in the place I like

I just write some AS3 for Stage Align but doesn´t work

looks like this…

```auto
package {
   import flash.display.MovieClip;
   import flash.display.StageAlign;
   import flash.display.StageScaleMode;
  
  public class Test extends MovieClip {
      public function Test() {
         stage.align = StageAlign.TOP_LEFT;
         stage.scaleMode = StageScaleMode.NO_SCALE;
      }
	  
	   public function onResize(event:Event)
         {
          AppMain.x = stage.stageWidth / 2; 
          AppMain.y = stage.stageHeight / 2;
         }
	  
   }
}

```

I see this thread [HERE](http://www.kirupa.com/forum/showthread.php?t=265189) and I want to do the same in AS3

Can anybody help me?
