Hello,
I tried to handle Drag and Drop from a DataGrid to an Image for deleting an element but I have some troubles.
Without PureMVC, I handle the events DragEnter and DragDrop in this way :
private function image_dragEnter(evt:DragEvent):void {
var obj:IUIComponent = IUIComponent(evt.currentTarget);
DragManager.acceptDragDrop(obj);
}
private function image_dragDrop(evt:DragEvent):void {
var item:Object = dataGrid.selectedItem;
var idx:int = arrColl.getItemIndex(item);
arrColl.removeItemAt(idx);
}
When i try to past event to Mediator, only one event is dispatched (randomly).
I don't understand what's happen!
I will be glad if someone can help me.
Thanks in advance