Development Flex



    
    
    import mx.managers.DragManager;
    import mx.events.DragEvent;
    import mx.collections.ArrayCollection;
    private function initApp():void {
    firstList.dataProvider = new ArrayCollection([
            {label:"First", data:"1"},
            {label:"Second", data:"2"},
            {label:"Third", data:"3"},
            {label:"Fourth", data:"4"}
        ]);
        secondList.dataProvider = new ArrayCollection([]);
    }
    private function dragOverHandler(event:DragEvent):void {
        event.preventDefault();
        event.currentTarget.showDropFeedback(event);
        if (event.dragSource.hasFormat("items")){
            if (event.ctrlKey) {
                DragManager.showFeedback(DragManager.COPY);
                return;
            }
        }
        DragManager.showFeedback(DragManager.NONE);
    }
    private function dragDropHandler(event:DragEvent):void {
        dragExitHandler(event);
    }
    private function dragExitHandler(event:DragEvent):void {
       
    }
  
    

    
    
            dropEnabled="true"
        dragMoveEnabled="true"
        dragOver="dragOverHandler(event);"
        dragDrop="dragExitHandler(event);"
        dragExit="dragExitHandler(event);"/>