I am guessing that you have not yet initialized the Map object - that
must be done before the geocoder can be used. See this issue for more
info:
http://code.google.com/p/gmaps-api-issues/issues/detail?id=876



On Wed, Dec 23, 2009 at 7:12 AM, mshen63 <[email protected]> wrote:
> Hi
>  Hi,
>
>  I have following code:
>
>  var geocoder:ClientGeocoder = new ClientGeocoder();
>  geocoder.addEventListener
> (GeocodingEvent.GEOCODING_SUCCESS,geoHandler);
>  geocoder.addEventListener
> (GeocodingEvent.GEOCODING_FAILURE,failHander);
>  geocoder.geocode(addressValue.text);
>
>  I get the error
>
>  Error #1009: Cannot access a property or method of a null object
> reference.
>
>  it seems it error happens at
>
>  var geocoder:ClientGeocoder = new ClientGeocoder();
>
>  Do you know why?
>
>  Thanks for help.
>
>  Marks
>
> --
>
> 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.
>
>
>

--

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