Geocoding, using the API, is asynchronous. In order to get the point
for an address, you have to listen for a response and handle it.

The code below should give you an idea how to extract the geocoded
response.

        private var point:String;
        private var address:String;

        private function doGeocoding():void
        {
                var geoCoder:ClientGeocoder = new ClientGeocoder("US");
                geoCoder.addEventListener(GeocodingEvent.GEOCODING_SUCCESS,
gcResult);
                geoCoder.geocode(this.address);
        }

        private function gcResult(e:GeocodingEvent):void
        {
                this.point = e.response.placemarks[0].point;
        }

-Dutch

On Oct 6, 7:15 am, jay <[EMAIL PROTECTED]> wrote:
> hello,
>    i am using google map in one of my application. my query is as i
> store the address in a database as text, but when user comes on this
> google mappage( which i have embedded in my app). the google map
> should point it to that address. i know it works in longitude and
> latitude, ie (map.setCenter(new GLatLng(37.4419, -122.1419), 13)), but
> how do i keep changing this value according to my need.
>
> Any help will be appreciated..
>
> Regards
--~--~---------~--~----~------------~-------~--~----~
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