From: dntel on
Hey, i want to make a quiz in director comprised of a few simple questions, how
do i go about keeping the score, for example in a variable and then outputting
that score at the end with a message like well done! thanks, any links to
tutorials would also be ace :)

From: Dean Utian on
dntel wrote:

> Hey, i want to make a quiz in director comprised of a few simple questions, how
> do i go about keeping the score, for example in a variable and then outputting
> that score at the end with a message like well done! thanks, any links to
> tutorials would also be ace :)

Hi dntel,

There is a quiz template at:
http://www.adobe.com/resources/elearning/extensions/director/sample_mov/
with behaviors for various question types.

If you're hard coding your quiz, all you need to do is create a global variable for
the score, when you keep adding to it every time you get a right answer. That
global can be displayed in a text member.

Hope that helps.

regards
Dean

Director Lecturer / Consultant / Director Enthusiast
http://www.fbe.unsw.edu.au/learning/director
http://www.multimediacreative.com.au
email: d.utian(a)unsw.edu.au



From: Dean Utian on
Just following on my brief mention of hardcoding a quiz, i set up a simple demo file
that can be accessed from:
www.fbe.unsw.edu.au/learning/director/files/quiz2.zip

I have 2 questions (multiple choice), with a tick next to the right answer. Click the
right answer to see the score go up (by one each click). Use a global variable that
changes when you click the right answer and that global variable is displayed in a text
member. I set the global variable to 0 when the movie starts using a movie script in
the 'prepareMovie' handler.

regards
Dean

Director Lecturer / Consultant / Director Enthusiast
http://www.fbe.unsw.edu.au/learning/director
http://www.multimediacreative.com.au
email: d.utian(a)unsw.edu.au