Happy New Year (LocalConnection)
January 2nd, 2008Here is a fun little way to say Happy New Year with some LocalConnection.
What does it do? It allows you to get your name in lights
by collecting it in the AIR application and then passing it to the browser based flex application via LocalConnection.

To try this out you must first download and install the AIR application. Once you do so be sure to open your choice of web browser and navigate to http://www.everythingflex.com/flex3/HNY/Index.html to open the web (flex) portion of the application. You can also just click on the URL link within the AIR application.

How do it work? On creationComplete of each application, they test for the connection name and if found set the status to true. The AIR application also reports its domain to the web application so that the web application need not have the publisherId hard coded into it. The status check is then continually polled every second.
I’ll get the source cleaned up and post it later this week.
Enjoy and like the post says, “Happy New Year!”
Posted by everythingflex


