# How to keep stage objects aligned to the side while resizing screen?

**URL:** <https://forum.kirupa.com/t/how-to-keep-stage-objects-aligned-to-the-side-while-resizing-screen/186166>\
**Category:** flash\
**Created:** [April 19, 2006, 3:04pm UTC](https://forum.kirupa.com/t/how-to-keep-stage-objects-aligned-to-the-side-while-resizing-screen/186166 "2006-04-19T15:04:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![drexp2000](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@drexp2000](https://forum.kirupa.com/u/drexp2000)\
**Post date:** [April 19, 2006, 3:04pm UTC](https://forum.kirupa.com/t/how-to-keep-stage-objects-aligned-to-the-side-while-resizing-screen/186166/1 "2006-04-19T15:04:09Z")

</div>

I posted this in the Flash MX2004 forum, but I hope I have better luck here.

[http://www.h2.com.tw/eng/indexpc.htm](http://www.h2.com.tw/eng/indexpc.htm)

In that website, how do they keep some of the movieclip items locked on the edge of the screen? When you resize your screen, the items on the edges are the ones that moves correspondingly. And the fillers are near the middle part.

Someone mentioned about adding a listener and act to a onResize command? If anyone got any quick samples they can share, that would be greatly appreciated.

Thanks.

Andre

---

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [April 19, 2006, 3:18pm UTC](https://forum.kirupa.com/t/how-to-keep-stage-objects-aligned-to-the-side-while-resizing-screen/186166/2 "2006-04-19T15:18:26Z")

</div>

I don’t have any samples for you, but you are correct.

You just make the objects \_x = Stage.width on a resize listener

---

<div class="post-metadata">

**Author:** ![Mirandir](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Mirandir](https://forum.kirupa.com/u/Mirandir)\
**Post date:** [April 19, 2006, 3:34pm UTC](https://forum.kirupa.com/t/how-to-keep-stage-objects-aligned-to-the-side-while-resizing-screen/186166/3 "2006-04-19T15:34:40Z")

</div>

The event to listen for is “Stage.rescale”:

[http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs\_Parts&file=00002692.html](http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002692.html)

/Mirandir

---

<div class="post-metadata">

**Author:** ![drexp2000](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@drexp2000](https://forum.kirupa.com/u/drexp2000)\
**Post date:** [April 19, 2006, 3:41pm UTC](https://forum.kirupa.com/t/how-to-keep-stage-objects-aligned-to-the-side-while-resizing-screen/186166/4 "2006-04-19T15:41:12Z")

</div>

> [@Mirandir](#):
>
> The event to listen for is “Stage.rescale”:
> 
> [http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs\_Parts&file=00002692.html](http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002692.html)
> 
> /Mirandir

We must be all working from home or at work and hardly working! hahahha. Thank you for those very quick replies. I will try that when I get home.
