Ted Patrick > Flex Evangelist > Adobe Systems


AIRChat - Chat live with the Bus

I have been working on a chat client for the on AIR Bus tour. I wrote the client using Flex 3 and the server using Python Twisted with Amazon EC2. The AIRChat client is available to download here and gives you a chance to chat with the on AIR Bus crew while watching the video feed.



DOWNLOAD AIRCHAT 1.01

DOWNLOAD the Adobe Integrated Runtime (AIR --> Required for AIRChat)


This was my first app using the HTML Control and I found it to be a very pleasant experience. Blending HTML and AS3/Flex is really great and presents many opportunities extending the reach of RIA. I used the HTML control for the Chat window and wrote elements via AS3 to the component.

The server I wrote in Python Twisted and it is running now on Amazon EC2 cluster on a Linux server image. I wanted to post the server code so you can see how all this works. The server runs on Port 80 serving both HTTP and XMLSocket servers on the same port. Regarding scalability Twisted uses an Asynchonous Event model so programming the servers is really simple and easy to understand. Here is the server code:

AirChat.py --> Contains the protocol and server logic
AirService.py --> Runs AirChat as a Daemon on any server

To run these you will need Python and Twisted Python installed.

See you in AIRChat!

Cheers,

Ted :)

7 Responses to “ AIRChat - Chat live with the Bus ”

  1. # Anonymous vamapaull

    very interesting app :)
    I love it!!  

  2. # Anonymous Stefan Richter

    and the video is served via...? VideoPython or something?  

  3. # Blogger Samiq

    Using it right now... kind of cool I got to say... I am gonna download the code to check it out!  

  4. # Blogger Todd

    Awwww...mixing Flex with server-side Python. A man after my own heart. Any possibility of posting some of the server code?  

  5. # Blogger Todd

    Nevermind about the server code. I saw the Python files at the bottom of the list. Thanks.  

  6. # Anonymous Nelson Neves

    Just tested the application and was fascinated. Video feed with 30 users was spectacular!

    Keep up the good work!  

  7. # Anonymous Cleber Willian

    Perfect! flex + python :)  

Post a Comment


Jobs


Flex Jobs
city, state, zip


© 2008 Ted On Flex