Collision Problem

Right now I have 2 draggable MC’s that work fine, I can drag both around on the stage. I can even test for when they hit each other… all fine and good.

But picture the MC’s as 2 magnets on a fridge… when one slides into the other, I don’t want it to be able to slide through it. Rather, the MCs should Stop when they hit each other… but still be able to be dragged around each other.


Here is What I have on one of the MCs:
note: the 2 MC names are “happy” and “holidays”

on (rollOver) {;

on (press) {

on (release) {

on (rollOut) {;

onClipEvent (mouseMove) {
if (this.hitTest(_root.holidays)) {