Howdy Flashkit,

I've imported questions for a quiz from XML successfully.

Actionscript Code:
var myXML:XML;
var myLoader:URLLoader = new URLLoader();
myLoader.load(new URLRequest("../xml/Quiz.xml"));
myLoader.addEventListener(Event.COMPLETE, processXML);

function processXML(e:Event):void {
    myXML = new XML(e.target.data);
    for (var i:int = 0; i<myXML.*.length(); i++) {
       
        var myQuestion:XMLList = myXML.quest[i].question;
        var myAnswer:XMLList = myXML.quest[i].answer;
       
        trace(myXML);
    }
}

What I'd like to do next is create a subset of 10 randomly chosen (shuffled and unique) questions from the bigger group (say of 21 questions). What is the best way to do this? I'm guessing I'll be using an Array.

Many thanks for any thoughts on this!