# Fine Tuning MC position using stage object

**URL:** <https://forum.kirupa.com/t/fine-tuning-mc-position-using-stage-object/205071>\
**Category:** flash\
**Created:** [October 25, 2006, 9:01pm UTC](https://forum.kirupa.com/t/fine-tuning-mc-position-using-stage-object/205071 "2006-10-25T21:01:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicodascorpio](https://avatars.discourse-cdn.com/v4/letter/n/7ba0ec/32.png) [@Nicodascorpio](https://forum.kirupa.com/u/Nicodascorpio)\
**Post date:** [October 25, 2006, 9:01pm UTC](https://forum.kirupa.com/t/fine-tuning-mc-position-using-stage-object/205071/1 "2006-10-25T21:01:03Z")

</div>

I’m using the stage object to align multiple MC’s. My question is how do I affect a MC’s position if I want to have it be centered on both axis but 100px away from the bottom margin instead of the top relative to the size of the window?

here’s my positioning code:

[AS]  
navBar.\_y = Stage.height;  
navBar.\_x = Stage.width/2;  
tpShadow.\_x = Stage.width/2;  
tpShadow.\_y = 6;  
idol2.\_y = Stage.height/2;  
idol2.\_x = Stage.width/2;

[/AS]

Also if i’m using an empty MC to load external swf’s, do the external swf’s have to have AS for positioning as well or do I position the empty MC in the base movie?

Thanks,

Nico

---

<div class="post-metadata">

**Author:** ![buginajar](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@buginajar](https://forum.kirupa.com/u/buginajar)\
**Post date:** [October 25, 2006, 10:13pm UTC](https://forum.kirupa.com/t/fine-tuning-mc-position-using-stage-object/205071/2 "2006-10-25T22:13:31Z")

</div>

Not sure what you are asking, but assuming your registration point is in the center and you want the clip centered horizontally and centered vertically but with a 100 pixel margin at the bottom.

```auto

theMC._x = Stage.width/2;
theMC._y = Stage.height/2 - 100;

```

To make things easier for you though, why don’t you make an object to hold the center stage coordinates? That way, when you make a change to where the “center” is, you just have to change it in one spot.

```auto

var stageCenter:Object = {x:Stage.width/2, y:Stage.height-100};

theMC._x = stageCenter.x;
theMC._y = stageCenter.y;

```
