Object Collision Help. :)

Hi, I’m pretty new to flash and I was wondering how I can have two draggable objects that doesn’t overlap so both objects go around each other while dragging. Something like the link below but i want the one object to stop and go around another object when it makes a collision instead of the object overlapping on another object. Anyone?

http://www.kirupa.com/developer/actionscript/advanced_collision.htm