Hi.
I haven’t been able to find the solution to my problem in the tutorials, therefore I hope some of you may help me.
I have an xml-file which creates this:
<product>
<item>Banana</item>
<color>yellow</color>
<tasty>yes</tasty>
…
</product>
<product>
<item>Apple</item>
…
</product>
To access these variables with Flash I use the usual XML-object/class:
var myXML:XML = XML();
myXML.load(“fil.xml”);
myXML.onLoad = function(){
for(i=0; i<lenght;i++){
myArray* = this.firstChild.childNodes*.childNodes*.firstChild.nodeValue;
This is where something goes wrong…
Am I not accessing the correct items? The idea was to create an array with the item-name, but it just returns “undefined”.
Please help me with this.
Best regards,
royend