I have a draggable movieclip on my stage. When it hits another object/movieclip the word: "hit" appears. So far, so good. But, I want the draggable movieclip to hit multiple other objects with each an different reaction (like loading an other movieclip or something).
This is the code I have for the hittest part:
import flash.events.Event;
this.addEventListener( Event.ENTER_FRAME, handleCollision)
function handleCollision( e:Event ):void
{
if(blok3.hitTestObject(schaap))
{
output_txt.text = "HIT"
}
else
{
output_txt.text = ""
}
}
SCHAAP is the draggable object, blok3 is the object that trigger the word "hit" when the draggable object hits it.
I hope you guys can help me out!