I've created a little example of how to do an animated trash bin using Adobe's Flex 3. I needed the ability to drag items from a List and drop them over a trash basket to delete them. While working on it, I thought I'd animate the trash basket to give the user a visual queue that the delete succeeded. So I thought why not just have the trash basket dump over, to show the user the item has been discarded?
Check out the result.
Drag an item from the list, over the top of the trash bin and release it. You can right-click on the example page to view the full source code and download a zip file. Or click here to view/download the source.
Adobe Flex