Re: fill in the blank quiz
Quote:
Originally posted by teacher99
I would like to make a fill in the blank quiz for my class that requires a student to type an answer into a text box, how do I include a text box using 3D Flash Animator and have it checked for the correct word?
example: "I ____ a donut yesterday." -- if the student types 'ate' the message 'Correct' will appear. if not, the message 'Wrong" will appear.
Thanks
Here's an interesting trick.
You can add an editbox element to a text element.
Create a text elememt that is the sentance like above. Then remove the individual letter elements for the word you want to test.
Then add an editbox element, set the variable to something that makes sense and turn off multiline and make the font a little smaller, then position it/size it to fit the hole in the sentence.
Now make a button add a script to the button up action that checks the value of the variable and do what ever is appropriate.
There is also another way to go, search the forum for the CBT thread I did a more complex example that loads from a data file so you can change the test. (that code was incomplete and would need updating for v4)
Attached is example of added editbox to sentence. V4 source!!!!
NOTE!!!!!
I didn't test this on export before and now that I have there is a prpoblem with this approach, the editbox is not positioned correctly, I will submit it to support perhaps it will be fixed in final release. You could through trial and error get it positioned I think