Not exactly the same but this message is related to this
http://groups.google.com/group/google-maps-api-for-flash/browse_thread/thread/60c435d8e70fe715/92df523cf0fa1457?lnk=gst&q=jatorre#92df523cf0fa1457
Javier.
On Sep 23, 2008, at 8:45 AM, pamela (Google Employee) wrote:
>
> Hey Ed-
>
> I can't find mention of this bug elsewhere in the group or issue
> tracker. Can you file it as an issue in the issue tracker (with code
> to replicate, instead of code to workaround it)? Thanks!
>
> - pamela
>
> On Mon, Sep 22, 2008 at 8:16 PM, WIBGeoCoder <[EMAIL PROTECTED]>
> 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
-~----------~----~----~----~------~----~------~--~---