# Draggable button pushing away other objects over

**URL:** https://forum.kirupa.com/t/draggable-button-pushing-away-other-objects-over/291315
**Category:** flash
**Created:** [June 28, 2009, 12:59am UTC](https://forum.kirupa.com/t/draggable-button-pushing-away-other-objects-over/291315 "2009-06-28T00:59:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Spacer](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@Spacer](https://forum.kirupa.com/u/Spacer)
#### Post date: [June 28, 2009, 12:59am UTC](https://forum.kirupa.com/t/draggable-button-pushing-away-other-objects-over/291315/1 "2009-06-28T00:59:21Z")

</div>

Hello

I have a draggable button/rectangle that when goes ontop of other objects they are being pushed away depending on the less distance around the rectangle.

If someone knows a tutorial or something that could help me please say 🙂

I started with if (button1.hitTest(button2)) { … } but I dont know what to do next ☹

Thanks!!!
