Quiz...New to Flash/AS

Hi all

I have a Red rectangle (made from rectangle tool), with a textbox underneath (component). What I want to do is when the quiz taker enters the correct word, the rectangle will turn green. I need this function without the need to press a button to give the answers.
So lets say the correct answer that the user will give is ‘England’. If that user enters ‘England’ into th text box, the rectangle should turn green.

Im a total beginner with Flash/Actionscript (I started yesterday hehe), but Im gathering a bit of knowledge from the net. I have absolutley no idea what the code to do the above would look like. Any help would be much much appreciated!

Thanks in advance

Stu