Try to read xml data into a variable to put it out in an
xml scheme
<akws>
<akw>
<name>test</name>
<_5>534543</_5>
</akw>
</akws>
now I want the number in <_5> into an s:Label
private function countpop():void{
popsum = parseInt(xmldata.akw[1]._5);
}
but
<s:Label text={popsum} />
gives me NaN?!
XML is zero indexed and also _5 is an element.
To refer to the int inside _5, use this code:
Here’s my test to confirm: