Just curious ... i am passing an xml node into a function, says its called data, and has a structure aaa bbb bbb bbb aaa
In the debugger i can type data["0"] and I correctly get the value of the [0] child . But in actionscript it returns the whole node as data[0] refers to "aaa" not its children so I have to use aaa.bbb[0] to get what I want. What I was trying to do was have a simple way that would work for getting an attribute, a node or an item in a xmllist ie ["@z"], ["ccc"], ["0"] .. with the name of what I am going to pull out being also passed as a param and it works in the debugger but not in code :)

