2个Flex应用程序之间的通信 [英] communication between two flex apps

查看:239
本文介绍了2个Flex应用程序之间的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在同一页上2伸缩的应用程序。我希望他们能够互相调用的公共职能。我想到的是用两种ExternalInterface的呼叫或FaBridge这样做的。 有没有更好的办法做到这一点?

I have 2 flex apps on the same page. I want them to be able to call each other's public functions. I am thinking of using either externalInterface calls or FaBridge to do so. Is there a better way to do it?

推荐答案

走的最好方法是使用的 的LocalConnection 。它允许你打电话从一个单独的SWF的方法,而不必通过JavaScript或服务器。

The best way to go is to use LocalConnection. It allows you to call methods from a separate SWF without having to go through Javascript or a server.

提示:如果你将要发送的参数是大于20KB的大小,你将要在两个或多个呼叫分裂他们。根据我的经验的LocalConnection 通话大约有这种规模的数据的限制。

Tip: if you're going to be sending arguments that are greater than about 20KB in size, you will want to split them up in two or more calls. In my experience LocalConnection calls have a limit of around that size for data.

这篇关于2个Flex应用程序之间的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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