Been a while since I messed with some Flash stuff, but have a perfect project for it that I have been kicking around for a while now.

My question is how can I go about getting a Flash app to listen/read incoming serial data?

I have a Flash movie embedded into a page, that is being locally hosted on a RaspberryPi device, served up via local LAMP install..

I have a connected Arduino, that will pass data over to this RPi/Flash app...

I have never done any sort of socket communication before (that I recall at least).. would this be the solution I need to read up more about?

I am hoping to NOT have some sort of 'polling' solution, as there is no telling when the connected Arduino will send data..

In a worst case scenario I migth be able to have the Arduino, send this data to a PHP script... have this PHP script save this data to either a text file or database..

then have the flash app load this text file or call this php script to query the database.. but that seems kind of 'messy'.. and again.. just random polling.. which would kill resources over time I'm sure..

Any feedback or suggestions on thing to research is appreciated.

Thanks!
-whispers