Google Maps formatted_adress put in an array

Google Maps formatted_adress put in an array

i want to put formatted_adress(google map) in an array, but it works not,

var x =0: $.each(data, function(a, b){ var degerler; degerler = new google.maps.LatLng(icerik.Yer.Latitude,icerik.Yer.Longitude); geocoder = new google.maps.Geocoder(); geocoder.geocode({'latLng': degerler}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { if (results[1]) { //now i want to put this formatted_adress in an Array var arr[x] = results[0].formatted_address; ++x; }//end Results[1] }//end status });//end geocoder.geocode });

How can i put this results[0].formatted_adress in array x?

 var arr[x] = results[0].formatted_address; 

Thanks in advance.