# MOUSE\_OVER causing problems

**URL:** <https://forum.kirupa.com/t/mouse-over-causing-problems/298576>\
**Category:** flash\
**Created:** [October 21, 2009, 11:29am UTC](https://forum.kirupa.com/t/mouse-over-causing-problems/298576 "2009-10-21T11:29:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratstew](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@ratstew](https://forum.kirupa.com/u/ratstew)\
**Post date:** [October 21, 2009, 11:29am UTC](https://forum.kirupa.com/t/mouse-over-causing-problems/298576/1 "2009-10-21T11:29:28Z")

</div>

Hi all  
I got a problem that i don’t understand and starting to feel stupid for not understanding. I have a very simple menu with items having an on and an off state using MOUSE\_OVER and MOUSE\_OUT. When i run it, it just alternates between the two frames when i have the mouse over the MC though i have stop(); in the frames of the MC “bandh”.

If anyone could help out i’d appreciate!

```auto
import flash.events.*;

bandh.addEventListener(MouseEvent.MOUSE_OVER, showFlag)
bandh.addEventListener(MouseEvent.MOUSE_OUT, hideFlag)
bandh.buttonMode = true;
    function showFlag(e:MouseEvent):void{
        e.currentTarget.gotoAndPlay(2);
    }
    
    function hideFlag(e:MouseEvent):void{
        trace(e.target.name);
        e.currentTarget.gotoAndPlay(1);
    }

```
