是否可以使用JavaScript将Flash applet拖放到外部? [英] Is it possible to drag and drop from/to outside a Flash applet with JavaScript?
问题描述
如果你知道一个网站的某个地方,那个奖金就是这样!
我知道jessegavin发布了一些代码,而我去弄清楚这一点,但是这个测试了。我有一个超简单的工作示例,可以让您拖放到Flash中。这是非常麻烦的,因为我在午餐休息时把它扔在一起。
这里是演示
而 source
基类直接从外部接口LiveDocs 。我添加了MyButton,所以按钮可以有一些文本。大部分的javascript来自相同的LiveDocs示例。
我使用mxmlc编译了这个。
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!
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.
这篇关于是否可以使用JavaScript将Flash applet拖放到外部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!