Andy Uehara coded a spectacularly useful bridge to send information from processing to Flash. I’d like to share it. The processing code could send data received from an arduino. Using this bridge, getting an arduino talking to flash should be pretty easy!
The code is available at my website here: http://www.watterson-atelier.com/sockettestFORBLOG.zip
Download that package. In order to make the program work, you need to go to this website: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html. Open the dropdown “edit locations” and add the folder containing to code.
The processing file outputs strings separated by commas. This is the format Flash expects to receive the information in; it will make an array out of that information. The package must end with \0, i.e. write(“1,5,7,2,2\0″).
Have fun