Obviously your marker is not instantiated.
If you change var position : LatLng = new LatLng ( marker.lat,
marker.lng ) to
var position : LatLng = new LatLng ( number1, number2 )
I think you should have no error.

On Oct 27, 8:33 am, LionArt <[EMAIL PROTECTED]> wrote:
> Hello,
> I started using Google Maps API but when I create a marker using this
> syntax :
>
> var position : LatLng = new LatLng ( marker.lat, marker.lng );
> var drawnMarker : Marker = new Marker( position );
>
> I get a debug error
> TypeError: Error #1009: Impossible to access null object
> at com.google.maps.overlays::Marker()
>
> Can someone help me ?
> Thank you very much.
--~--~---------~--~----~------------~-------~--~----~
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