flash animation video tutorials

 

 

 

START LEARNING
FLASH NOW

Get instant access to over
45 minutes of FREE Flash tutorials on video
 and our newsletter.

Name:
E-Mail:
Phone:
Describe

.

.

.

 
Web video-animation.com

.

.

flash tutorials flash tutorials flash tutorials flash tutorials

Flash MX Fill the Blank Quiz for Interaction Learning

This tutorial is for learning how to do the Fill in the answer type of quizzes for Interaction Learning movies in Flash 5 and Flash MX Pro.

First thing to do is make a static text field with the question in it.
Then make a Input Text field with the variable name of input (and chuck a border around it).

flash mx elearning tutorial

Make another Dynamic Text Field with the variable name of "comment" for the response to the input by the punters.

flash mx elearning tutorial quiz

Make a button and place this code in its action window:

	on (release){
	if(_root.input == "Canberra" || _root.input == "canberra")
		{
			_root.comment = "Correct";
		}
	else
		{
			_root.comment = "Wrong";
		}
	}

Flash Tutorials in Video Format - Watch them now at LearnFlash.com  

The punters put their answer in the input text field and the code in the button determines whether the answer is correct and puts feedback into the comment field.

Addendum 15th September, 2003
You can also use the syntax of :
_root.instanceName.text = "something or other";
So, in the above example you could name the textfield instances input_txt and comment_txt.
And then you could write :
_root.comment_tx.text = " Correct!";
or :

if(_root.input_txt.text=="Canberra){
	_root.comment_txt.text = "Correct";
} 
A haah .. BUT If _root.instanceName.text equals a number instead of words you may get an error. But be aware of that.. Test it out and let me know!
Thanks to Paul for pointing out to me the ambiguities in this tutorial. Hopefully it will now be a lot clearer.
Flash MX Pro - The software that makes it all possible!

flash 8
.