# MOUSE\_OVER, MOUSE\_OUT Issue

**URL:** <https://forum.kirupa.com/t/mouse-over-mouse-out-issue/316914>\
**Category:** flash\
**Created:** [December 6, 2010, 6:05am UTC](https://forum.kirupa.com/t/mouse-over-mouse-out-issue/316914 "2010-12-06T06:05:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Poizentoad](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@Poizentoad](https://forum.kirupa.com/u/Poizentoad)\
**Post date:** [December 6, 2010, 6:05am UTC](https://forum.kirupa.com/t/mouse-over-mouse-out-issue/316914/1 "2010-12-06T06:05:50Z")

</div>

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.
