Input text identifies movieclip

I haven’t been able to find what I am looking for in the forums or tutorials online. Hopefully someone can lead me to a resource or offer insight.

I am making a training application that requires a user to identify a characteristic or property of a movieclip (color, shape, etc), type the answer into an input text box, and click a submit button. For instance, a user is randomly presented with a random colored square movieclip from the library through an array. The user is instructed to identify the color of the movieclip (blue, green, red, orange, yellow). The user would type “blue” (or whatever color identifies the movieclip) in the input text box and click the submit button to get a correct/incorrect response.

I am having trouble with effectlvely getting the the input text box and submit button to recognize the movieclip once it is presented. What is the most effective way to code the input text box to relay the user input to match the movieclip? This seems elementary but I any assistance to get me started would be appreciated.

Thanks for any help!