Hi Juan-

There's no such thing as MarkerEvent class- You need the MapMouseEvent
class. See:
http://code.google.com/apis/maps/documentation/flash/reference.html#MapMouseEvent.CLICK


On Wed, Oct 8, 2008 at 1:23 PM, Juan Rubio <[EMAIL PROTECTED]> wrote:
> I am adding the marker event listener with this code but it's not working?
>  Can someone tell me how I call the CLICK event for a marker, please.
> Thanks.  Pam: you are the best!  Thanks for all the help.
> -Juan
> var map:Map = new Map();
> map.key =
> "ABQIAAAAqHCtvG0B1UAuOcXUgxMuPhQjTyfjKy_vE4Hlcs6uW55pQwMV0xQ_KGxV2pXf7EHwRz-7n7O8Gi6Jog";
> map.setSize(new Point(stage.stageWidth, stage.stageHeight));
> map.addEventListener(MapEvent.MAP_READY, onMapReady);
> function onMapReady(event:Event):void {
>   map.setCenter(new LatLng(40.736072,-73.992062), 17,
> MapType.NORMAL_MAP_TYPE);
>   var markerA:Marker = new Marker(
>             new LatLng(40.736072,-73.992062),
>             new MarkerOptions({
>                 strokeStyle: new StrokeStyle({color: 0x987654}),
>                 fillStyle: new FillStyle({color: 0x223344, alpha: 0.8}),
>                 radius: 12,
>                 hasShadow: true
>   }));
>   markerA.addEventListener(MarkerEvent.CLICK, OpenW);
>   map.addOverlay(markerA);
> >
>

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