Calendar

January 2008
M T W T F S S
« Dec   Feb »
 123456
78910111213
14151617181920
21222324252627
28293031  

Tag Cloud

Categories

Archives

Highest Rated

Most Viewed

Recent Posts

Recent Comments


« Happy Holidays! | Main | Attn Flex devs: win 10 g’s from ebay »

Happy New Year (LocalConnection)

By Rich Tretola | January 2, 2008Print This Post Print This Post
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
56 views

Here 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.

hny.jpg

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.

hnyair.jpg

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!”

Share/Save/Bookmark

Topics: Adobe AIR, Flex 3 (Moxie) |

2 Responses to “Happy New Year (LocalConnection)”

  1. tom Says:
    April 23rd, 2008 at 9:27 am

    doesnt work at all!!!! And your flex file makes my browser crash!!! Actually I use the last version of flash player and I have the felling that this version is different from the last with AIR.

    I try to etablish a localconnection between browser and AIR but my probem is the following:
    - First try: error
    - Second: Flash player crash

    The connection string is the following:
    “app#APPID:CON_NAME.D53BB786B4D0E4F1B1A6CB855660CDEF50AA4EE1.1″ but doesnt work.

  2. everythingflex Says:
    April 23rd, 2008 at 9:51 am

    Yeah, the original was done in beta 3, I just uploaded a new version of the application. Uninstall the one you have and download the new one using the link above.

Comments