Sorry that I can't see your game due to no longer using Flash.
If I understand correct that you only need to replace my variable with your textInput.Text.
Then convert the text to number and calculate the result.
Final, compare the input of user with result.