Hi,
I’m loading in some data from an XML into Flash then searching a level and returning a number depending on how many nodes are on that level (at the moment is “2”) Then I collect bits of info from each and trace the results which works fine, problem is I can’t seem to create a separte textbox for each result?
Any suggestions…below is my code:
_root.total = _root.xmlNode.childNodes[0].childNodes.length;
for (i=0; i<total; i++) {
venue* = _root.xmlNode.childNodes[0].childNodes*.childNodes[0].childNodes[8].firstChild;
team_a* = _root.xmlNode.childNodes[0].childNodes*.childNodes[0].childNodes[0].firstChild;
team_b* = _root.xmlNode.childNodes[0].childNodes*.childNodes[0].childNodes[1].firstChild;
kick_off* = _root.xmlNode.childNodes[0].childNodes*.childNodes[0].childNodes[5].firstChild;
trace((venue*) + ": " + (team_a*) + " v " + (team_b*) + ", Kick off at " + (kick_off*));
I thought I would just need to write something like:
fixture*.text = (venue*) + ": " + (team_a*) + " v " + (team_b*) + ", Kick off at " + (kick_off*);
But that doesn’t work…it just displays the 2nd result