Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to drag and drop from/to outside a Flash applet with JavaScript?

Let's say I want a web page that contains a Flash applet and I'd like to drag and drop some objects from or to the rest of the web page, is this at all possible?

Bonus if you know a website somewhere that does that!

like image 634
BoD Avatar asked Sep 17 '08 12:09

BoD


1 Answers

This one intrigued me. I know jessegavin posted some code while I went to figure this out, but this one is tested. I have a super-simple working example that lets you drag to and from flash. It's pretty messy as I threw it together during my lunch break.

Here's the demo

And the source

The base class is taken directly from the External Interface LiveDocs. I added MyButton so the button could have some text. The majority of the javascript comes from the same LiveDocs example.

I compiled this using mxmlc.

like image 51
enobrev Avatar answered Oct 13 '22 13:10

enobrev