Hi Marcelovs, I'm not sure why do you need to call ClientGeocode.geocode by showing Map.
Maybe you need a database for caching your results. Add a result when you got a new address. Trevor On Tue, Sep 22, 2009 at 11:04 PM, Marcelovs <[email protected]> wrote: > > Hi people, > I have a problem. > > I'm develloping an application that contains many addresses in my > database and I need to search this addresses in google maps. > I'm sure the addresses are right, because when I search one by one, > The google map finds it, but when I search many addresses they doesn't > work correctly. > I know this method - ClientGeocode.geocode - is asynchronous this > situation occurs because of this, but I don't know how to solve it. > > > It's part of my code: > > googleMap.clearOverlays(); > > var returnedColl:ArrayCollection = ArrayCollection > (event.message.body); > > var lObject:PostoVO = null; > for(var i: int; i< returnedColl.length; i++){ > lObject = PostoVO(returnedColl[i]); > geocoder.geocode(lPosto.address); > } > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
