i trying use shared object save array collection of city objects. each city object contains basic string properties (i.e. cityname, state, zipcode, etc...). can write shared object however, upon retrieval unable access inner properties of given city object. ideas?
var tempac:arraycollection = new arraycollection(); if( getobjects()) { tempac = getobject(); //returns shared object use. alert.show("temp length " + tempac.length.tostring()); // current length returned '7902' cities expected var i:int; var cityobj:object; var tmpstring:string; //loop through array collection , collect city values; for(i=0; < 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" entries in array collection }
Comments
Post a Comment