views:

1072

answers:

2

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?

A: 

NOTE:There is a better solution refer this link http://stackoverflow.com/questions/1258187/communication-between-two-flex-apps/1260710#1260710 answer by David.Its a pretty good and better approach.

There are two ways only one by using some communication medium at client side (Javascript) or doing it on server side like doing some update on server and other application listens for update.

So i think first one is better for communication.You can achieve it by doing through javascript but i will recommend you to use FABridge.

Rahul Garg
dude.. you liked this page. where's the better solution ?
ufk
+60  A: 

The best way to go is to use LocalConnection. It allows you to call methods from a seperate 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.

David Verhasselt