I have a problem with flash and xml:
var testXML:XML = <books>
<category type=“novel”>
<namee>hi</namee>
<namee>hello</namee>
</category>
<category type=“poetry”>
<namee>actionScript</namee>
<namee>flashxml</namee>
</category>
</books>
var path:String = new String();
var a:String = “testXML.category[0]”;
var b:String = “.namee[1]”;
path = a + b;
trace(path); // Output: “testXML.category[0].name[1];”
trace(this[path]); // Output: “undefined”
I want to the value of “hello” using with the “path” variable.
How can I? Please help me.
Thanks…