# Align 1 MC to Bottom Left of Other MC

Greetings been a while since I’ve posted here.

I’m having a small problem with aligning movieclips. I have 2 movieclips.

For examples sake let’s call them

black_box
red_box

I need red_box to align to the bottom left of black_box. Now the code I’m using works when black_box lays on the 0 axis for both x and y. But since the positioning of these movieclips are dynamic I’m having problems.

I’m almost sure I just need to add in the current x and y values into the equation but I simply can’t figure it out :lol:

``````
red_box._y = black_box._height - red_box._height;
red_box._x = black_box._width - black_box._width;

``````