var tempAC:ArrayCollection = new ArrayCollection();
if( getObjects())
{
tempAC = getObject(); //returns the only shared object i currently use.
Alert.show("temp length " + tempAC.length.toString()); // current length returned is '7902' cities as expected
var i:int;
var cityObj:Object;
var tmpString:String;
//loop through array collection and collect city values;
for(i=0; i < tempAC.length(); i++)
{
cityObj= new Object();
cityObj= tempAC[i];
tmpString += "City Name: "+ cityObj[i].CITYName.toString() + " "+ cityObj.hasOwnProperty("CITYName") +"\r\n" ;
}
Alert.show(tmpString); //this alert displays "City Name [object Object] true" for all entries in the array collection
}
|