Frustrating Flex problems solved #7 – Removing DragDrop animation

In Flex was building a simple drag and drop from a library list to another simple list. I also wanted to build the functionality of dragging the item out of the simple list to automatically remove the item from the list, and return the item to the library.

I managed to handle this with one problem remaining. As the dragged item thought it wasn’t going to be accepted, it automatically played an animation of it returning to the simple list before my code displayed it back in the library. The animation was completely misleading but I couldn’t find a way to turn it off!

My solution in the end was to create a custom ListItemDragProxy component. I included this in the list with:

and in the custom class, I merely set visible=0 onMouseUp. Simple solution that works perfectly.

iOS development with Swift - book: video course:

Tagged with:
Posted in Flex

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: