Is it possible to drag and drop from/to outside a Flash applet with JavaScript?(是否可以使用 JavaScript 从/到 Flash 小程序外部拖放?)
问题描述
假设我想要一个包含 Flash 小程序的网页,我想从网页的其余部分拖放一些对象,这可能吗?
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!
推荐答案
这个引起了我的兴趣.我知道 jessegavin 在我解决这个问题时发布了一些代码,但是这个已经过测试.我有一个超级简单的工作示例,可让您在 Flash 中拖动.我在午休时间把它放在一起,很乱.
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.
这里是 演示
以及来源
基类直接取自 外部接口 LiveDocs.我添加了 MyButton,所以按钮可以有一些文本.大多数 javascript 来自同一个 LiveDocs 示例.
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.
我使用 mxmlc 编译了这个.
I compiled this using mxmlc.
这篇关于是否可以使用 JavaScript 从/到 Flash 小程序外部拖放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:是否可以使用 JavaScript 从/到 Flash 小程序外部拖放


基础教程推荐
- Karma-Jasmine:如何正确监视 Modal? 2022-01-01
- 我什么时候应该在导入时使用方括号 2022-01-01
- 动态更新多个选择框 2022-01-01
- 角度Apollo设置WatchQuery结果为可用变量 2022-01-01
- 在for循环中使用setTimeout 2022-01-01
- 有没有办法使用OpenLayers更改OpenStreetMap中某些要素 2022-09-06
- 当用户滚动离开时如何暂停 youtube 嵌入 2022-01-01
- 在 JS 中获取客户端时区(不是 GMT 偏移量) 2022-01-01
- 悬停时滑动输入并停留几秒钟 2022-01-01
- 响应更改 div 大小保持纵横比 2022-01-01