Originally posted by Shotsy247
Another way to work with one external txt file.


Your external Text File titled questions.txt

questionList=Question1?, Question 2?, Here is another question?, And yet another?, This one is actually a statement!


in you movie:

questionSet = new LoadVars(this)
questionSet.load("questions.txt");
questionSet.onLoad = function(success){
if(success){
questionsArray = new Array();
questionsArray = questionSet.questionList.split(",");
}
}

Now your questions can be accessed through the array.

questionsArray[1];
questionsArray[2];
questionsArray[3];

and so on.

or have i = your random number and...

questionsArray[i];

I'm not up on the XML method although I think I will use this as a reference and try to learn it.

_t
The questions would need to have the answers in them, as well as what the correct answer is. Do you think you could make an example of what you mean? Thanks!