Detect NativeDragDrop to Trash or RecycleBin

Posted by colder on Stack Overflow See other posts from Stack Overflow or by colder
Published on 2010-05-15T08:39:50Z Indexed on 2010/05/15 8:44 UTC
Read the original article Hit count: 168

Filed under:
|

I will let user remove item from List with a cool method. Drag an item in adobe air List control and then drop it to Trash(OSX) or Recycle Bin(Win).

The trash accept move drag action only. So I think I must set dragMoveEnable=true.

When I drag an item to Recycle Bin on Windows. It show accept effect(alpha mask) and Air remove that object from List's dataProvider. So I can find which one is disappear.

But when I drag to Trash on MacOSX. It show effect too. But Air do nothing for List.

Maybe this is a bug. How can I avoid it? Are there any way to detect where dropped by user?

© Stack Overflow or respective owner

Related posts about air

Related posts about adobe-air