I'm gonna feel dumb asking due to the fact I'm sure there's a simple solution to this, but if I don't ask… I may never know.
I have an image covering the entire stage. All I'm trying to do is get a simple trace that the mouse has left the stage. I have applied in tests the addEventListener to the instance without success. I've applied the addEventListener to the stage without success. I've also read suggestions about using ROLL_OUT instead of MOUSE_OUT, but that doesn't make a difference either. What the heck am I missing here?!
-JR
image.addEventListener(MouseEvent.ROLL_OVER, over);
image.addEventListener(MouseEvent.ROLL_OUT, out);
image.addEventListener(MouseEvent.CLICK, hit);
function over(event:MouseEvent):void {
trace(“Mouse is over the pic”);
}
function out(event:MouseEvent):void {
trace(“Mouse has left the stage”);
}
function hit(event:MouseEvent):void {
trace(“Clicked the mouse”);
}