Great,

Thats's exactly what I thought, setting up and timer for a short  
interval  after dragging the map to ignore the click event. Great it  
works. I will fix my application now :)

This a very annoying "extra functionality" from the API.

Javier.


On Sep 23, 2008, at 5:16 AM, WIBGeoCoder wrote:

>
> Yes, before you say anything, this is a complete "quick fix work-
> around" for the "feature" that auto-magically fires the click event
> after the "MapMouseEvent.DRAG_END" event:
>
> private var _isMouseDragging:Boolean = false;
>
> private function onMapMouseDragStart(e:MapMouseEvent):void    //The
> DRAG_START event
> {
>       _isMouseDragging = true;
> }
> private function onMapMouseDragEnd(e:MapMouseEvent):void   //The
> DRAG_END event
> {
>       //Quick fix for click event fired straight after "onMapMouseDragEnd"
>       var mouseDragTimer:Timer = new Timer(.5, 1);
>       mouseDragTimer.addEventListener(TimerEvent.TIMER_COMPLETE,
> onMapMouseReallyDragEnd);
>       mouseDragTimer.start();
> }
> private function onMapMouseReallyDragEnd(e:TimerEvent):void
> {
>       _isMouseDragging = false;
> }
>
> private function onMouseClick(e:MapMouseEvent):void
> {
>       if (!_isMouseDragging)
>       {
>               //Execute this code when the mouse clicks the map...
>       }
> }
>
> Timers rule AS3!
> >


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