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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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