communication between two flex apps

久未见 提交于 2020-01-23 06:38:45

问题


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?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/1258187/communication-between-two-flex-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!