Flash and Flex Communication

Feb 24

I assume it’s because I didn’t search for the right terms, but I couldn’t find anything good about communicating between Flash 9/10 and Flex.

I found some posts on LocalConnection, and this post… but the issue with LocalConnection is that you can only have on instance open at once.  So, if you build something and a user opens two tabs of it, it will fail to connect to the second instance.  Blarg!

The solution is actually simple: good old events. I tried this earlier but failed to add the “.content.add” piece.

Check out this example, and download the code.

Leave a Reply