I am trying to get hitTestPoint to work. When I type this in, I get this error:
Scene 1 1046: Type was not found or was not a compile-time constant: mcircle.
Here is the code I have:
import flash.events.Event;
addEventListener(Event.ENTER_FRAME, hitTest);
function hitTest(evt:Event){
if(mcircle.hitTestPoint(mouseX, mouseY, true)){
hitText1.text= "hitTestPoint- TRUE";
}
else{
hitText1.text= "hitTestPoint-FALSE";
}
}
I am a really new to flash, so I know I am doing some silly mistake. Any help will be really appreciated :)