Justifieds

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:

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.