Reading textfile variables

Hi all,

I want to set up a random question generator that refers to a text file. I have managed to do most of it, but had hit a wall now.

I can get Flash to read the text file and display the question, answers and right answer. What I cannot seem to figure out is how to get Flash to look at the right answer to compare with what the user clicked.

Please see the attached zip file for FLA, SWF and TXT file.

Many thanks,

Andy

PS The problem is with the actionscript in frame 2.