I’m new to XML, so please bear with me.
I’ve set up a test page in Flash:-
function loadXML(loaded) {
if (loaded) {
_root.resource = this.firstChild.childNodes[2].childNodes[0].firstChild.nodeValue;
resource_txt.text = _root.resource;
} else {
content = “file not loaded!”;
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“MBAtestXML.xml”);
which should read in a hyperlink from an XML file. This is as far as I have got:-
<?xml version=“1.0”?>
<laboratory>
<question>
<first>This is the first question</first>
</question>
<option>
<first>This is the first option</first>
</option>
<resource>
<<linkItem url=“http://adobe.com/”>link</linkItem>
</resource>
</laboratory>
The problem is, how do I make ‘link’ clickable in the flash file?
Thank’s in advance.
Philippa