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
{
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
{
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
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]
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
5 matches
Mail list logo