I've just come across a really strange bug (at least I hope it's a bug, as it seems like bad behavior to me.) - Subclass a Canvas in an ActionScript component - Add listeners for NativeDragEvent.NATIVE_DRAG_ENTER and NATIVE_DRAG_DROP (make the listeners simply trace a confirmation message) - Place the new component in an AIR app and see if the listeners fire.
In my test, and in an app I'm working on, they don't. Now, add another listener for any MouseEvent (i.e. CLICK). This listener doesn't have to do anything, but relaunch the app and - suddenly - the NativeDragEvent listeners fire! It doesn't matter if you include flash.events.MouseEvent, or if you make a reference to a MouseEvent object (to ensure it's compiled in) - you have to have the listener registered or it won't work. Can anyone verify this so I know I'm not going crazy? :) Or even better, can anyone explain this behavior? I'm using Flex SDK 3.3. Thanks, - Ken