Hey Mike-

The basic answer is function closure, and using different
ClientGeocoder objects for each geocode.

But my question is, why do you want to geocode in a loop? We highly
discourage using client-side geocoding for that. If you know addresses
ahead of time, you should geocode them once and store the lat/lngs in
your DB/text files/etc. Then it's a much better experience for the
user, as they don't have to wait for the geocoding to complete.

- pamela

On Wed, Oct 1, 2008 at 5:43 AM, mike <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> i want to convert a set of addresses stored in an array.
> How could I pass the index of the currently used index in the array
> to the geocode function? (and as a consequence on the "success"
> callback)
>
> for i...
> {
>   geocode(string) //<- how do I pass the "i" here and on the
> callback?
> }
>
> thanks
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to