Snap to object

I was wondering if anyone would be able to tell me how I can go about snapping a mouse oriented movie clip to a another movie clip if they come in contact, I tried some things using hittest but it wasn’t giving me the effect I wanted. If anyone could help me get this it would be great!

Thanks Alot