This is an experiment where I used the Multitouch Framework to communicate to a Flash application.
In details:
The iPhone runs the application provided with Multitouch Framework which communicate with a Mac application using their framework. In this application I created a socket server the flash application can connect to.
More details can be found here: blogs.conchango.com/filthyria/archive/2008/09/21/multi-touch-flash-application-controlled-by-iphone.aspx