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

前端 未结 6 1435
无人共我
无人共我 2021-01-05 17:09

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?

B

6条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-05 17:46

    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.

提交回复
热议问题