Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function parserXML():void {
- var data:XMLList = xml.children();
- generateTenRandomQuestion(data.length());
- for (var i:int = 0; i < 10; i++) {
- var j:int = numbers[i];
- content.push(new QuestionsAndAnswer(xml.child("quest")[j].attributes()[1],
- xml.child("quest")[j].attributes()[2],
- xml.child("quest")[j].attributes()[3],
- xml.child("quest")[j].attributes()[4],
- xml.child("quest")[j].attributes()[5],
- xml.child("quest")[j].attributes()[6],
- xml.child("quest")[j].attributes()[7]
- ));
- }
- initQuestion();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement