# Stage Align for Display Objects

**URL:** <https://forum.kirupa.com/t/stage-align-for-display-objects/286147>\
**Category:** flash\
**Created:** [April 10, 2009, 7:15pm UTC](https://forum.kirupa.com/t/stage-align-for-display-objects/286147 "2009-04-10T19:15:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aspivey](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@aspivey](https://forum.kirupa.com/u/aspivey)\
**Post date:** [April 10, 2009, 7:15pm UTC](https://forum.kirupa.com/t/stage-align-for-display-objects/286147/1 "2009-04-10T19:15:38Z")

</div>

I’ve been putting off asking this question and have tried to resolve it myself since it would seem to be so basic; however after much frustration :bu: , here goes:

Can a display object (ie an instance of a class loaded from the library such as a filled rectangle {_trying to keep this simple_} be positioned on the main stage by using the following syntax:

myrecTangle.stage.align = StageAlign.BOTTOM;

I have created a fairly simple class to load objects to the stage by class type (_recTangle_) and name (_myrecTangle_) and all works fine up to the positioning. The objects are created and named properly and are placed on stage; however, they are all placed on stage at 0,0 stage coordinates. I can postion them anywhere using x. and .y values but when I use syntax similar to that above they are still positioned at 0,0. There are no errors thrown. I have also tried to create a sprite for each, load them into the sprite and addChild the sprite to the stage. They are still positioned on stage at 0,0. Is the stage.align/StageAlign syntax peculiar to absolute main stage positioning or am I allowed to use it also for object positioning. Sorry to waste time with this newbie question but I’m outta creative ideas.

Thanks for a great forum and any time spent with response.

Arch
