Closed GoogleCodeExporter closed 8 years ago
var xml:XML = <head><nodes><node>Node 1</node><node>Node
2</node></nodes></head>;
trace(xml.name()); // head
// Commandline works out a method in the order below...
trace(xml["name"], getQualifiedClassName(xml["name"])); // blank, XMLList
trace(xml["name"]()); // blank XMLList isn't a function...therefore ERROR...
Can anyone help me with this?
Original comment by luay...@gmail.com
on 30 Oct 2009 at 12:14
Found the answer.. thanks to live-docs :/
These functions are under AS3 namespace, so to call methods under this
namespace:
var X:XML = <a><b c='ccc'>ddd</a>;
trace(X.AS3::['name']());
Original comment by luay...@gmail.com
on 4 Jan 2010 at 9:03
Original issue reported on code.google.com by
luay...@gmail.com
on 30 Oct 2009 at 10:11