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

查看:143
本文介绍了是否可以使用JavaScript将Flash applet拖放到外部?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我想要一个包含Flash小程序的网页,我想从网页的其余部分拖放一些对象,这是可以吗?



如果你知道一个网站的某个地方,那个奖金就是这样!

解决方案

我知道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屋!

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