# Align 1 MC to Bottom Left of Other MC

**URL:** <https://forum.kirupa.com/t/align-1-mc-to-bottom-left-of-other-mc/205738>\
**Category:** flash\
**Created:** [November 1, 2006, 2:45pm UTC](https://forum.kirupa.com/t/align-1-mc-to-bottom-left-of-other-mc/205738 "2006-11-01T14:45:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [November 1, 2006, 2:45pm UTC](https://forum.kirupa.com/t/align-1-mc-to-bottom-left-of-other-mc/205738/1 "2006-11-01T14:45:34Z")

</div>

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:

```auto

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

```

Thanks in advance.
