What way of reading and storing data is fastest for AS3. For debugging right now it is just reading the raw XML, but I suspect it would be faster if I made them into nested arrays.
Would parsing the XML into nested arrays to be read later be the most efficient method?, or is there a better way to read lots of data?
Well pasring an xml into Array has various advantage as mentioned in above comments..
How you will get Nested Array for the sample XML
var uLoader:URLLoader = new URLLoader()
uLoader.addEventListener(Event.COMPLETE,onXMLLoaded)
uLoader.load(new URLRequest(“xmldata.xml”))
public function onXMLLoaded(event:Event):void {
}
public function recursiveXML(showChilds:XMLList,nodes_names:Array,nodes_swf:Array,nodes_values:Array,nodes_pages:Array, count:int):Array
{