[flexcoders] Re: Mouse DOUBLE_CLICK not fired in Browser but in AIR

2008-07-30 Thread valdhor
Got me beat. Someone with more experience with drag/drop will have to chime in. --- In flexcoders@yahoogroups.com, Vijay Ganesan [EMAIL PROTECTED] wrote: Not so if you add the drag handling code as in my original example: private function onMouseDown(event:MouseEvent):void {

[flexcoders] Re: Mouse DOUBLE_CLICK not fired in Browser but in AIR

2008-07-29 Thread valdhor
Given the following: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=creationCompleteHandler() mx:Script ![CDATA[ private function creationCompleteHandler():void {

[flexcoders] Re: Mouse DOUBLE_CLICK not fired in Browser but in AIR

2008-07-29 Thread Vijay Ganesan
Not so if you add the drag handling code as in my original example: private function onMouseDown(event:MouseEvent):void { trace(onMouseDown); var ds:DragSource = new DragSource(); DragManager.doDrag(this, ds, event); } Works in the AIR version. --- In flexcoders@yahoogroups.com, valdhor

[flexcoders] Re: Mouse DOUBLE_CLICK not fired in Browser but in AIR

2008-07-28 Thread valdhor
Don't quote me on this but it is probably because the MouseEvent.MOUSE_DOWN event is captured before a double click. If you change the event listener from MouseEvent.MOUSE_DOWN to MouseEvent.CLICK then it works as expected. --- In flexcoders@yahoogroups.com, Vijay Ganesan [EMAIL PROTECTED]

[flexcoders] Re: Mouse DOUBLE_CLICK not fired in Browser but in AIR

2008-07-28 Thread Vijay Ganesan
I need to handle MOUSE_DOWN because I'm enabling drag and drop. Again the weird thing is that the AIR version works fine. --- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: Don't quote me on this but it is probably because the MouseEvent.MOUSE_DOWN event is captured before a