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!
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);
}