actionscript 3 - AS3 XML, nodeName with attributes comes up blank -


i've tried many different ways of accessing name of attribute, can't working.

the current function:

protected function applyproperties(_axml:xml):void {     var list:xmllist = _axml.properties;     var list2:xmllist = list.attributes();      (var = 0; < list2.length(); i++) {         trace(list2[i].nodename.tostring());     } } 

the xml it's referring to:

<content type="media"> <target>warning.png</target> <properties x="20" mouseenabled="$false"></properties> </content> 

i have tried name, i've tried searching object, looked solutions on stackoverflow.. nothing has worked me far. had properties node such: fearing flash interpretting incorrectly.

edit: seems xml interpretted rather printed out..

list2[i] xml object.

xml objects not have nodename, thats xmlnode object.

try

list2[i].name().tostring(); 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -