Ok that i can understand but how would i go about adding a listener to
a button inside the mc added to the info window?

//--

var marker:Marker = new Marker(map.getCenter(), new MarkerOptions
({draggable: true}));
        //If marker is drag window will dissappear. this listener opens the
window again after dragging has stopped
        marker.addEventListener(MapMouseEvent.DRAG_END, function
(event:Event):void {
                var options:InfoWindowOptions = new InfoWindowOptions({
                        customContent: new gForm(),//close button inside gForm
                        customOffset: new Point(0, 10),
                        width: 300,
                        height: 120,
                        drawDefaultFrame: true,
                        hasCloseButton:false

                });
                lat = marker.getLatLng().lat();
                lng = marker.getLatLng().lng();
                trace("lat:"+lat+ "lng:"+lng);
                marker.openInfoWindow(options);
        });

//--

Sorry if it is obvious.
--~--~---------~--~----~------------~-------~--~----~
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