# Align stage to the left, how to?

**URL:** https://forum.kirupa.com/t/align-stage-to-the-left-how-to/224147
**Category:** flash
**Created:** [April 29, 2007, 9:17am UTC](https://forum.kirupa.com/t/align-stage-to-the-left-how-to/224147 "2007-04-29T09:17:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![puppy](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@puppy](https://forum.kirupa.com/u/puppy)
#### Post date: [April 29, 2007, 9:17am UTC](https://forum.kirupa.com/t/align-stage-to-the-left-how-to/224147/1 "2007-04-29T09:17:17Z")

</div>

I want flash banner to span acros the screen so I put width=“100%” and Stage.scaleMode = “noScale”; ok. But, this way all its content is centered. I want it to stick on the left, and so I put this code in it:

```auto
onEnterFrame = function () {
 _root._x = 0.5 * (750 /* original document width */ - Stage.width);
}

```

This works. But the way this thing works when I resize browser window is far, very far from smooth. I tried to change it to

```auto
onEnterFrame = function () {
 var rx = 0.5 * (750 - Stage.width);
 _root._x = rx + 0.1 /* or another number */ * (_root._x - rx);
}

```

in a hope that such an easing would help, but it did not help at all Ⓜ So… I am wondering if there is some straightforward way to do this, like some hidden FLA setting, or some Stage/\_root property, and if there is no, how the hell to script it?

Thanks for reading.
