You must be logged in to post Login Register
Search 

stage/instance MOUSE_OUT/ROLL_OUT not firing

User Post

4:25 pm
October 15, 2009


jackrabbit75

New Member

posts 2

1

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. Embarassed

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?!  Yell


-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”);

}

Topic RSS 
Search