You need something like this (this is a close enough approximation... and I haven't actually tried it - but it's near enough! =) )
first off you need to set-up your questions and answers... I don't think that Flash deals with multi-dimensioned arrays (don't forget that Flash arrays are zero based, so 0 is position 1 and 9 is position 10!).
--------------------
This bit sets up the arrays... it's probably worth loading these from a text file (you can construct a variable name using something like 'question_array[1] = eval(question + 1)' this adds the '1' to 'question' and then puts the contents of question1 into the array, at position 1).
Anyway, the basic array set-up (ignoring the bit I just mentioned above) is...
// set-up questions...
question_array[0] = "What is my name?";
.
.
question_array[9] = "Why are we here?";
// set-up answers...
answer_array[0] = "Petitpal";
.
.
answer_array[9] = "Who knows!";
-------------------------------------
Now when you want to load the question onto screen do this...
// get a random number...
my_random = random(9);
// set text box mc instance to question...
queston_textbox = question_array[my_random];
-------------------------------------
Fianlly, to validate the answer simply read the same position from the answer array...
// validate answer...
if (answer_array[my_random] != answer_textbox) {
// they got it wrong...
<insert code here>
} else {
// they got it right...
<insert code here>
}
--------------------------
Obviously this is very simple and doesn't take account of different case, etc, but it should give you a good starting point. =)
Good luck, and if you need any more help give me a shout!
=)
PetitPal.