Hey Gents, what is correct way to return data from multiple arrays out of a parse function and into an object so I can get to it globally? I tried a return objData at the end of the parse but only gives me the last one…
function loadXML(e:Event):void
{
var xmlPure:XML = new XML(e.target.data);
xmlData = parseXML(xmlPure);
initialize(xmlData);
}
function parseXML(objData:XML)
{
var i:Number;
var showTitle:Array = new Array();
var showDesc:Array = new Array();
var showThumbSmall:Array = new Array();
var showThumbLarge:Array = new Array();
for (i=0; i < 5; i++)
{
showData*.showTitle = objData.channel.item*.title.text();
showDesc* = objData.channel.item*.description.text();
showDate* = objData.channel.item*.date.text();
}
function initialize(xmlData){
Do stuff here... but need to make the data global.
}