Quiz_intro

First thing: Load the xml so we have all the information the create the pages for the quiz. So create a setup function in quiz_intro that is called from the constructor, and write inside the setup method the code to load the xml file

import com.quiz.*;
import com.utilities.*;

class com.quiz.Quiz_intro extends Quiz_base
{
private var xmlStr:XML;
private var ok:Boolean;
public function Quiz_intro()
{
setup()
}
private function setup()
{
//loading the xml and and when done call parseMyXml
var myXml:String = "quiz_content.xml"
xmlStr = new XML;
xmlStr.ignoreWhite = true;
xmlStr.onLoad = Proxy.create(this,onLoadXML,ok)
xmlStr.load(myXml)
}
private function onLoadXML(ok:Boolean):Void
{
if(!ok)
{
trace("not loaded")
}
else
{
xmlStr = xmlStr.childNodes[0]
parseMyXML();
}
}
private function parseMyXML()
{
trace("no")
//we are dividing the content of the xml and putting in static variables
Quiz.title = xmlStr.childNodes[0].attributes.name
Quiz.quiz_content = xmlStr.childNodes[0].childNodes;
Quiz.solutions = xmlStr.childNodes[1].childNodes;
delete xmlStr;
trace("title: " + Quiz.title)
trace("*************************")
trace("content " + Quiz.quiz_content)
trace("*************************")
trace("solution " + Quiz.solutions)
}
}

and set the static variable in the quiz class

static var title:String
static var quiz_content:Array
static var solutions:Array

Now we have to put the xml file in the same directory of the fla.
download from here the full xml

So if you publish your movie you will see in the trace all the three arrays in the output window.

if not donwload from here the framework update
what we are doing is::
create and XML object
xmlStr = new XML;
and obviously creating the variable for the istance of the class
private var xmlStr:XML;
deleting all the white spaces
xmlStr.ignoreWhite = true;
we call the handler for the XML when the xml is loaded and ok is a parameter to say if everything is right or not
xmlStr.onLoad = Proxy.create(this,onLoadXML,ok);
xmlStr.ignoreWhite = true;
So if the xml is loaded we go in the onLoadXML function and delete the first node of the xml, and call the parseMyXML function.
xmlStr = xmlStr.childNodes[0];
parseMyXML();
Now let's create a method called startAnim() and call it at the end of the xml procedure