# Help with quiz for a learning object

**URL:** <https://forum.kirupa.com/t/help-with-quiz-for-a-learning-object/324888>\
**Category:** Uncategorized\
**Created:** [September 14, 2011, 4:37am UTC](https://forum.kirupa.com/t/help-with-quiz-for-a-learning-object/324888 "2011-09-14T04:37:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgreen](https://avatars.discourse-cdn.com/v4/letter/t/f05b48/32.png) [@tgreen](https://forum.kirupa.com/u/tgreen)\
**Post date:** [September 14, 2011, 4:37am UTC](https://forum.kirupa.com/t/help-with-quiz-for-a-learning-object/324888/1 "2011-09-14T04:37:16Z")

</div>

So basically I want to make a quiz where the user identifies textures in images. The first image is of a shell. So I want the user to be able to type in their answer into a input text field, then press a “check answer” button. Then if they typed in shell “Correct” will appear in a dynamic text field or “incorrect” if they had typed in any other answer.

Could someone please help me with the action script required for this button, I am using action script 2 in flash cs4.

I found this code on the internet but it didn’t work.

on (release) {  
if (input\_instance\_name==“correct answer”){  
display\_instance\_name.text=“Correct!”;  
}  
else{  
display\_instance\_name.text=“Wrong!”;  
}  
}
