When a mc "touch" another mc

How to get that a MC when it touch another MC2, it will bounce away a few _y positions or _x?.
Shoort questiion. Thanks