Next we can add actions on the green
buttons, so that they set variables when
they are pressed. This can be achieved
with the following action code:
on (press,
release) {
../:question_select="q1";
}
which sets the questions_select variable
on the parent movie. Each of the buttons
then set the question_select variable.
Next we can add two new functions to the
main action script. The get_question()
function sets the question for the array
of questions, and the answered() function
is called when an answer is select. These
are given next: