Hi guys, I have an xml file going into a flash movie clip. I want the xml to be hyperlinks. The names of the hyperlinks will change with time, but the url will not. I can not get this to work. Please help.
I have 2 dynamic text boxes…with this code in flash…
function loadXMLData(loaded) {
if (loaded) {
_root.link1 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.link2 = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
link1_txt.text = _root.link1;
link2_txt.text = _root.link2;
}
else {
trace(“Could not load XML file”);
}
}
xmlFile = new XML();
xmlFile.ignoreWhite = true;
xmlFile.onLoad = loadXMLData;
xmlFile.load(“solutions.xml”);
here is the xml file
<solutions>
<item>
<link1><![CDATA[<a href="<A href=“http://www.hotmail.com”>link one</a>]]></link1>
<link2>Link Two</link2>
</item>
</solutions>