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

前端 未结 6 1438
无人共我
无人共我 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:55

    Hang on, the encapsulation point is a valid one but flash can execute JS functions, and Seldaek is right that an HTML element with a higher z-index should float on the flash movie. So if you did all the drag handling in JS and had the flash read its own dimensions and the position of the pointer in the app it could signal JS methods that slave element(s) to the pointer even (especially) when the pointer leaves the boundaries of the flash app. It would be pretty hairy though.

提交回复
热议问题