AS3 - Problem with flickering Animated Buttons

Hi,

I was really hoping someone could help me fix this issue I have been having with some animated menu buttons I created.

The problem is when you rollover with your cursor in certain areas and in certain ways you can cause this strange flickering effect to happen. (basically it gets stuck in a loop, where it keeps trying to go back to the over state and then the out states repeatedly).

I have attached a .fla file for anyone to look at in the hope that someone can help me fix this annoying issue!

I’m sure there must be an easy fix to this problem as it must happen all the time, but unfortunately i am a novice with actionscript and am still learning.

The code for my buttons is here:

stop();
norway_mc.buttonMode = true;
norway_mc.addEventListener(MouseEvent.ROLL_OVER, overHandler);
norway_mc.addEventListener(MouseEvent.ROLL_OUT, outHandler);
swiss_mc.buttonMode = true;
swiss_mc.addEventListener(MouseEvent.ROLL_OVER, overHandler);
swiss_mc.addEventListener(MouseEvent.ROLL_OUT, outHandler);
belgium_mc.buttonMode = true;
belgium_mc.addEventListener(MouseEvent.ROLL_OVER, overHandler);
belgium_mc.addEventListener(MouseEvent.ROLL_OUT, outHandler);
germany_mc.buttonMode = true;
germany_mc.addEventListener(MouseEvent.ROLL_OVER, overHandler);
germany_mc.addEventListener(MouseEvent.ROLL_OUT, outHandler);

function overHandler(event:MouseEvent) {
event.target.gotoAndPlay(“over”);
}

function outHandler(event:MouseEvent) {
event.target.gotoAndPlay(“out”);
}

Many thanks in advance

Luke