tags:

views:

12

answers:

0

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>

adobe_air2rc1_drop_list_item_to_trash_on_mac_10_6_3 adobe_air2rc1_drop_list_item_to_trash_on_mac_10_6_3_after

adobe_air2rc1_drop_list_item_to_trash_on_winxp adobe_air2rc1_drop_list_item_to_trash_on_winxp_after

adobe_air2rc1_drop_list_item_to_trash_on_win7 adobe_air2rc1_drop_list_item_to_trash_on_win7_after

related questions