Attach MC with dynamic resizing mc

I have a dynamic resizing mc that is rectangular in shape
Trying to have secondary mc always attach to the upper right hand
corner without scalling along with the resizing clip …

am I going in the right direction with this?

 
attached_mc._y = resize_mc._y-attached_mc._width;
attached_mc._x = resize_mc._x-resize_mc._height;

thanks in advance