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?
<s:List dragEnabled="true" dragMoveEnabled="true">
<s:dataProvider>
<s:ArrayCollection>
<fx:Object label="Item one"/>
<fx:Object label="Item two"/>
<fx:Object label="Item three"/>
</s:ArrayCollection>
</s:dataProvider>
</s:List>