Thanks for your reply but I'm not following your comment. Once I create a polygon I call addEventListener as shown above to set up the event handlers. Then I overlay the polygon (not shown above). I'm not sure why I need to remove the listener after an action. Which action are you referring to?
TIA, Fred On Jul 22, 10:26 am, "[email protected]" <[email protected]> wrote: > Im not an Actionscript guru so take this for what its worth. > But the first thing you need is to removeEventListener once you call > the action. > > On 21 July, 20:55, farbodr <[email protected]> wrote: > > > In the code below the infoWindow appears when the cursor hovers over a > > polygon as it should but the click event for the same polygon fires > > intermittently. > > > polygon.addEventListener(MapMouseEvent.CLICK, function > > (event:MapMouseEvent): void { > > // do the click thingy > > }); > > > polygon.addEventListener(MapMouseEvent.ROLL_OVER, function > > (event:MapMouseEvent): void { > > > }); > > > infowindow is created like this > > > map.openInfoWindow(ll, new InfoWindowOptions({ contentHTML: > > content})); > > > What am I missing here? > > > TIA, > > Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
