# Rectangle intersection problem

**URL:** <https://forum.kirupa.com/t/rectangle-intersection-problem/214308>\
**Category:** Uncategorized\
**Created:** [January 27, 2007, 6:43am UTC](https://forum.kirupa.com/t/rectangle-intersection-problem/214308 "2007-01-27T06:43:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavanshinde](https://avatars.discourse-cdn.com/v4/letter/p/7ba0ec/32.png) [@pavanshinde](https://forum.kirupa.com/u/pavanshinde)\
**Post date:** [January 27, 2007, 6:43am UTC](https://forum.kirupa.com/t/rectangle-intersection-problem/214308/1 "2007-01-27T06:43:16Z")

</div>

Hi,

I have created two movie clips **mc1** and **mc2. MC2 is a dragable movieclip**. I want that whenever mc2 hit mc1, it automatically place mc2 beside mc1. I mean to say that they cant overlap each other.

I have tried so many thing but cant get it right. So i thought you peoples can help me.

I have attached two pics which show what i want.

Plz help me.

Thanks
