Flash AS3 TUIO Client

The default transport method for TUIO is the delivery of binary OSC data by sending UDP packets via port 3333. This method ensures a compact, platform independent and low latency message delivery. Since Flash currently does not support TUIO/UDP we make use of an alternative TUIO/FLC (shared memory LocalConnection) method for Flash. There also exists an additional TUIO/TCP transport method, which can be used in conjunction with Flash.
Update: The future versions of Adobe Air 2.0 and Flash 10.1 will finally also support UDP. There are plans to provide this input support within the TUIO AS3 reference implementation, which will allow to use Flash directly with all standard TUIO/UDP implementations.

The Flash/AS3 TUIO client reference implementation has been developed by Immanuel Bauer in collaboration with Dean North, Johannes Luderschmidt and Georg Kaindl. This library supports both TUIO/FLC and TUIO/TCP transport methods and implements the basic TUIO callback API. The library also provides a legacy API in order to support existing Flash examples, that have been based on the original touchlib API.

The current CVS version of the TUIO C++ reference implementation supports TUIO/FLC and TUIO/TCP in addition to the default TUIO/UDP transport and the next versions of reacTIVision and Touché will both support direct TUIO/FLC to be used with Flash.

Although many Flash examples are presently using a Flash/XML TUIO format, as delivered through Flosc or directly by the present version of CCV, this solution is not a direct representation of the TUIO protocol, since it encapsulates the TUIO data in rather large XML messages. Therefore we encourage the use of the TUIO/FLC gateway for trackers that only support standard TUIO/UDP.

Georh Kaindl explaining the technical background of TUIO/FLC and showing a brief demo

principal TUIO Flash Resources