1 Reply Latest reply on Dec 15, 2006 2:41 PM by ur_dtrain

    Drag Drop Cancel

    tnirenstein Level 1
      Is there a way to cleanly cancel a drag/drop operation. I want to cancel it by hitting the escape key. I can capture the Escape key being hit during the drag/drop I don't know how to make the Image proxy go away and return to it's source.

      Thanks in adance!
        • 1. Re: Drag Drop Cancel
          ur_dtrain Level 1
          You might be able to spawn a new DragEvent to fool it into thinking you've released the object. Dispatch it from the component that you are dragging (or the grid/list that spawned the item):

          var de:DragEvent = new DragEvent(DragEvent.COMPLETE);
          de.action = DragMananger.NONE
          draggableObj.dispatchEvent(de);

          Play around with that.