0 Replies Latest reply on May 10, 2011 5:13 AM by Colijn1

    Difference between drag events in Flex vs. Air?

    Colijn1

      I have a Canvas with a dragEnter and a dragDrop event.

      On top of the canvas I have 2 buttons.

      button1 initiates a doDrag event.

      button2 also has a dragEnter and a dragDrop event, but also a dragExit event.

      Both the canvas' and the button2's dragEnter event, allow the drop.

      When I run this application in Flex and start dragging button1, I can see the canvas' dragEnter event dispatch.

      When I continue dragging on to button2, I can see button2's dragEnter event dispatch.

      When I continue dragging outside the boundaries of button2, back on to the canvas, I can see button2's dragExit event dispatched as well as the canvas' dragEnter event again.

      When I do this in AIR, everything works the same for one thing: when I drag button1 off button2, back on to the canvas, button2's dragExit event is dispatched but not the canvas' dragEnter event.

      I use exactly the same code.

      Anybody an idea?