Flex:有没有一种方法可以将自定义事件从一个加载的 Flex 应用程序分派到另一个?

发布于 2024-10-09 02:04:04 字数 314 浏览 0 评论 0原文

我有一个加载两个不同 SWF 文件的 HTML 页面。 有没有一种方法可以将自定义事件从一个 Flex 应用程序分派到另一个应用程序?

为了创建自定义事件,我扩展了 Event 类,并向构造函数添加了另一个名为 params 的变量,该变量是一个对象。我使用 EventDispatcher 来调度事件。

我不知道如何在一个弹性应用程序与另一个弹性应用程序之间执行此操作。 有可能吗?

如果不是,是否有其他方式可以让这两个 Flex 应用程序在不打开 LocalConnection 的情况下进行通信?

使用 Flex 4.5

谢谢!

I have an HTML page that loads two different SWF files.
is there a way to dispatch a custom event from one flex application to another ?

to create a custom event I extend the Event class and I add another variable to the constructor called params which is an Object. I use EventDispatcher to dispatch the events.

I have no idea how to do that between one flex application to the other.
is it even possible ?

If it's not, is there any other way that these two flex applications can communicate without opening a LocalConnection ?

Using flex 4.5

thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心碎无痕… 2024-10-16 02:04:04

在同一页面上,您可以使用ExternalInterface通过Javascript帮助函数传递数据。但 LocalConnection 更容易,因为它是直接的。

On same page, you can use ExternalInterface to pass data through Javascript helper function. But LocalConnection is easier because it is direct.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文