After seeing Mario Klingemann’s HTML5 drag and drop demo, I wanted to write a library around it and make it a little more cross-browser.
Register the necessary event listeners to the class and react to events such as dragging a file / element over your swf, dropping data or dropping a file on the swf.
FlashDragDrop.addEventListener(FlashDragDropEvent.DROP_DATA, dropDataHandler);
You don’t need to add any extra javascript to your flash embed, the javascript necessary to add the drag and drop support is injected automatically.
You can detect the drag and drop events in the latest versions of Firefox, Safari and IE. Accessing the content of the dropped files only works in the latest version of Firefox (try dropping an image).
You can check out a demo or download the source files.


freaking cool. make love not war!
doesn’t work for safari
@Kyle
Safari is working on it (it does allready support the new video-tag, but you’ll have to download their preview version of it).
Hello,
I have try your example on last version of Chrome and Firefox, but I cannot success to use it.
It works for me only in IE.
Do you have any idea of what could be the problem?
Thank you
Some definitely excellent posts on this unique internet web site , regards with regard to contribution.