Reputation: 52580
What's the best way to communicate between 2 Flex/Flash apps on the same webpage? I need a 3rd party Flash app to call a function on my Flex 4 app (they are ready to customize their 3rd party app how I specify). I use ExternalInterface.call("javascript_function", arguments)
extensively. I know there's a bridge to go from Javascript to Actionscript as well. So I guess I could go from their flash app -> javascript function -> flex bridge -> my flex app. Do I have to go through javascript? Is there a better way?
Upvotes: 1
Views: 283
Reputation: 335
You can look at LocalConnection, but if the other app is really a third party, it might make more sense to use Javascript as the bridge (As you don't really have full control over the other app).
LocalConnection is certainly nicer and cleaner than using Javascript, but I'm always worried about giving a third party access to the internals of my app.
Upvotes: 6