是否可以使用 JavaScript 从/拖放到 Flash 小程序外部? [英] Is it possible to drag and drop from/to outside a Flash applet with JavaScript?

查看:23
本文介绍了是否可以使用 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 小程序外部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆