Skip to main content
tripleA999
Known Participant
March 6, 2012
Answered

Loading multiple XML and using

  • March 6, 2012
  • 1 reply
  • 411 views

Hi

I loaded multiple xml files inside Array

now I am unable to use the xml files from array

function onLoaded(e:Event):void

{

    var xml:XML = new XML(e.target.data);

        myXMLArray.push(xml);

}

mytexts[textIndex] = myXMLArray[index].set.text;

i gets error on this

How I can retrive data from XML files saved in array ??

This topic has been closed for replies.
Correct answer kglad

that last line of code shouldn't execute until AFTER onLoaded() executes.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
March 6, 2012

that last line of code shouldn't execute until AFTER onLoaded() executes.