Creatig multiple selections from XML and AS

Hello,

I am a Learning assessment tool which I inherited the code for. It was done it AS3 and Flash CS3. The application pulls in an XML file that contains 50 questions and Answers, with a time limit of 60 minutes. Everything works great, but I would like to make some modifications. What I would like to do is create two (2) segments of 25 Questions each, and I time limit of 30 minutes per segments. The XML file is easy enough to alter. It would be something like this.


<?xml version="1.0" encoding="utf-8"?>
<EXAM>
    <SYSTEM>
        <TITLE>HNLS BT Entrance Exam Section 1</TITLE>
        <MINUTES>30</MINUTES>
        <RETAKEPW>321owl</RETAKEPW>
        <URL>dataTransfer.php</URL>
    </SYSTEM>
    <TEXT>
        <SECTION id="1">
            <PROBLEM id="1">
                <QUESTION>Protein is digested by gastric, pancreatic, and small intestinal enzymes called:</QUESTION>
                <CHOICE letter="a">amylases.</CHOICE>
                <CHOICE letter="b">lipases.</CHOICE>
                <CHOICE letter="c">nucleases.</CHOICE>
                <CHOICE letter="d" correct="true">proteases.</CHOICE>
            </PROBLEM>
            <PROBLEM id="2">
                <QUESTION>Proteins are broken down into:</QUESTION>
                <CHOICE letter="a">glycerol and fatty acids.</CHOICE>
                <CHOICE letter="b">oligosaccharides.</CHOICE>
                <CHOICE letter="c" correct="true">peptides and amino acids.</CHOICE>
                <CHOICE letter="d">proteases and lipases.</CHOICE>
            </PROBLEM>
            
                
            
        </SECTION>
<SECTION id="2">
            <PROBLEM id="1">
                <QUESTION>Protein is digested by gastric, pancreatic, and small intestinal enzymes called:</QUESTION>
                <CHOICE letter="a">amylases.</CHOICE>
                <CHOICE letter="b">lipases.</CHOICE>
                <CHOICE letter="c">nucleases.</CHOICE>
                <CHOICE letter="d" correct="true">proteases.</CHOICE>
            </PROBLEM>
            <PROBLEM id="2">
                <QUESTION>Proteins are broken down into:</QUESTION>
                <CHOICE letter="a">glycerol and fatty acids.</CHOICE>
                <CHOICE letter="b">oligosaccharides.</CHOICE>
                <CHOICE letter="c" correct="true">peptides and amino acids.</CHOICE>
                <CHOICE letter="d">proteases and lipases.</CHOICE>
            </PROBLEM>
            
                
            
        </SECTION>
    </TEXT>
</EXAM>

what I need help with is the code where a user can choose which section they want to take in order to complete the test. The current AS which should allow for multiple selections is this.


package exam {
    
    import flash.events.*
    
    //Custom Event class that sends up the number of sections in the loaded XML.  If more than one, user will
    //need to select the section they want to take before exam proceeds.
    internal class MultiSectEvent extends Event {
        public static const SECTIONS:String = "sections";
        public var sectionCount:Number;
        public var systemVar:Object;
        
        //CONSTRUCTOR
        public function MultiSectEvent (type:String, sCount:Number, systemVars:Object, bubbles:Boolean=false,
                                        cancelable:Boolean=false) {
            //pass to superclass' constructor (Event)
            super(type, bubbles, cancelable);
            
            //add section count so listeners know number of sections
            sectionCount = sCount;
            systemVar = systemVars;
        }
        
        //custom Event class, so MUST override clone().
        public override function clone():Event {
            return new MultiSectEvent(type, sectionCount, systemVar, bubbles, cancelable);
        }
        
        //custom Event class, so MUST override toString().
        public override function toString():String {
            return formatToString("MultiSectEvent","type","bubbles","cancelable","eventPhase","sectionCount",
                                  "systemVar");
        }
    }
    
}


right now this does not work and the application breaks.