# AS3 drag w/ avoiding objects

**URL:** https://forum.kirupa.com/t/as3-drag-w-avoiding-objects/325908
**Category:** flash
**Created:** [November 11, 2011, 7:51am UTC](https://forum.kirupa.com/t/as3-drag-w-avoiding-objects/325908 "2011-11-11T07:51:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![oddtimeflux](https://avatars.discourse-cdn.com/v4/letter/o/258eb7/32.png) [@oddtimeflux](https://forum.kirupa.com/u/oddtimeflux)
#### Post date: [November 11, 2011, 7:51am UTC](https://forum.kirupa.com/t/as3-drag-w-avoiding-objects/325908/1 "2011-11-11T07:51:30Z")

</div>

He guys,

Here’s my problem - I want to create a function in which I can drag an object (movieclip) which will bump into other objects (other movieclips) on screen without overlapping them (i.e. the object cannot be dragged over or through other movieclips).

I’d also appreciate a way to move the other objects rather than block the dragged objects (e.g. when dragged object is bumping into another object, the other objects is pushed in the same direction).

Please advise (rather desperate here). Thanks.
