Hi. I want to close the infowindow of a marker clicking on an area outside
of it, not only using the close button in the upper right corner.
The code looks like this:
stage.addEventListener(MouseEvent.CLICK, closeMarkerInfo);
function closeMarkerInfo(event: MouseEvent):void
{
trace(event.target); //returns [object WrappableComponent] when I click on
the map
if(event.target is WrappableComponent){
markerArray[currentMarker].closeInfoWindow(); //closes currently open
InfoWindow
}
}
and this is the error i get:
1120: Access of undefined property WrappableComponent
I understand that WrappableComponent is not a valid argument, but how else
can I express that?
I already tried using the Map class, but with no luck: I don't get error
messages but the InfoWindow doesn't close neither.
Appreciate any help, thanks.
--
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.