# Position MC on stage

**URL:** <https://forum.kirupa.com/t/position-mc-on-stage/286055>\
**Category:** flash\
**Created:** [April 9, 2009, 10:03am UTC](https://forum.kirupa.com/t/position-mc-on-stage/286055 "2009-04-09T10:03:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ukko](https://avatars.discourse-cdn.com/v4/letter/u/e68b1a/32.png) [@ukko](https://forum.kirupa.com/u/ukko)\
**Post date:** [April 9, 2009, 10:03am UTC](https://forum.kirupa.com/t/position-mc-on-stage/286055/1 "2009-04-09T10:03:56Z")

</div>

I have 9 MC on stage with an instance of S1 to S9.

what I am try to do is position each clip beside each other on the x coordinate.

in AS2 it would be something like this

```auto

for (var d:Number = 0; d<9; d++) {
this["S"+d]._x = this["S"+d]._x -this["S"+d]._width/2
}

```

cheers guys

here’s my code so far

AS3 code

```auto

for (var d:Number = 0; d<9; d++) {
        var stamp_mc:MovieClip = new MovieClip();
        stamp_mc.name = "S" + d;
        //evt.target.x = stamp_mc.x;
        stamp_mc.x = stamp_mc.x - stamp_mc.width/1;
        trace(stamp_mc.x);
    }

```
