If statement question

Hi Kirupa,

I have the following piece of code, which checks a dynamic text field on the click of a button and if the text field is 3 it plays one movie clip and if it is not it displays another:

private function checkAnswer(event:MouseEvent):void {
			if (answerText.text == "3")
			{
				correct_mc.play();
			}
				else
			{
				wrong_mc.play();
				answerText.text = null;
			}
			
	}

This works fine, however, after getting the answer wrong, it takes an extra mouse click to register.

So it plays the wrong_mc movie clip, then if you click again nothing happens. Then the next click it works and will play it again.

Anyone have any thoughts?

Kbowk