A Sample Multiple Choice Quiz in Flash ...

This quiz is based on the Learning Interactions library symbol. It uses only multiple choice. It is relatively straight forward to set up a quiz with various types of interaction. The main problem was working out how to keep track of variables from the questions. In this example the variable "score" was tracked.

For a working model see: http://www.notableuk.net/OUTLOOK.html 

The trick is to set up a Dynamic text area at the bottom level movie (called: "_root") with the variable "score".

You then go into the ActionScript for MC_Assets and enter the line: _root.score = _root.score + 1; under each 'correct' if condition.

Right-click the "results section...

Insert the line "_root.score = _root.score + 1;" as indicated under the feedback is turned on and feedback is turned off sections ...

The key to understanding how it works is to think in terms of the question movie sending the variable to the root movie, rather than the root movie trying to 'get' the value from the question movies. (It only took me around a week of frustration before it fell into place. - It looks too simple when written in one line!)

You can use your full arsenal of Flash skills to make your quiz questions as spectacular as you like!