So I am making a basic Mouse_over/ mouse_out event, but if I pull the mouse off before the object reaches frame “box_big” then the mouse_out event will not activate. What is a way around this?
stop();
//box wip
MainBox.addEventListener(MouseEvent.MOUSE_OVER, Box_Expand);
MainBox.addEventListener(MouseEvent.MOUSE_OUT, Box_Contract);
function Box_Expand(event:MouseEvent):void{
if(MainBox.currentFrame == 1)
MainBox.gotoAndPlay(“box_in”);
}
function Box_Contract(event:MouseEvent):void{
if(MainBox.currentLabel == “box_big” )
MainBox.gotoAndPlay(“box_out”);
}
Tried many things to no avail for hours. Please help.