Hey there!
I have this strange problem. I want my Dynamic textfield to display test from an XML-file.
It loads the XML, but for some reason my dynamic textfield shows the nodenames, as well as the node text. Here’s a snippet of my code:
var myXML:XML = new XML();
myXML.ignoreWhite=true;
myXML.onLoad=teamSort;
myXML.load("table.xml");
function teamSort(success:Boolean):Void {
if (success){
m1.placement_1.text=myXML.firstChild.firstChild.firstChild;
m1.k_1.text=myXML.firstChild.firstChild.childNodes[3];
and here’s a snippet of the XML
<?xml version="1.0"?>
<table>
<team id="1">
<position>1</position>
<name>F.C. København</name>
<logo>FCK</logo>
<played>18</played>
<won>12</won>
<draw>4</draw>
<lost>2</lost>
<goalplus>33</goalplus>
<goalminus>12</goalminus>
<points>40</points>
</team>
</table>
Any ideas would be great!
cheers
//V\ I K Z