# Justifieds

**URL:** <https://forum.kirupa.com/t/justifieds/165948>\
**Category:** flash\
**Created:** [October 15, 2005, 12:01pm UTC](https://forum.kirupa.com/t/justifieds/165948 "2005-10-15T12:01:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dae](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@Dae](https://forum.kirupa.com/u/Dae)\
**Post date:** [October 15, 2005, 12:01pm UTC](https://forum.kirupa.com/t/justifieds/165948/1 "2005-10-15T12:01:01Z")

</div>

Aight,

Can anyone point me to a tutorial, or something explaining, or mind telling me on how to go about working on an MC’s coords when its center justified?

Basically all I am trying to do is make one MC go to the corner of another MC (no matter where its placed).

So I start with the onEnterFrame:

```auto
this.num2_MC.onEnterFrame = function() {
	this._x = num1_MC._x + num1_MC._width;
	this._y = num1_MC._y + num1_MC._height;
}

```

The code obviously doesn’t work. My stage is of course justified to top-left (where 0 starts) and the num1\_MC is justified center. I could make num2 justified center or top-left if I want.

I’m sure this is some sort of simple Math, Stage.width - something + (this / that) or something… but I cant work it out. Then again… its 5:07. Aghh…

Any help appreciated.
