I am writing a quiz application. All questions and answer options are taken from xml ans shown on the screen with this code of action script
for (i=0; i < numberOfQuestions; i++) {
var questionTextField = new TextField();
addChild(questionTextField);
questionTextField.text=i + " " + myXML.QNODE[i].QUESTION.text();
questionTextField.name="q"+i;
questionTextField.width=400;
questionTextField.x= 0;
questionTextField.y=i * 100;
generateAnswers(i);
}
But, I would like to show first 5 questions and then next 5 and so on. How can we do this?