Touchlib’s TUIO Actionscript 3 Classes Enhanced With Fiducial Support (Source Code)
In his Bachelor thesis Frederic Frieß enhanced the original Touchlib TUIO AS3 classes with support for fiducials (or to speak in TUIO terms with support for /tuio/2dobj messages).
Thus, the Touchlib’s TUIO classes can simply be replaced with Frederic’s classes and everything should still work as before. However, there is one slight change in the package structure: the TUIO classes are now lying inside the package tuio and not in the package flash.events.
I have made Frederic’s Tuio Fiducial AS3 classes available on Google code in a project called fiducialtuioas3.
If you want to use reacTIVision fiducials in Flash, Flex or Adobe Air you are heartily invited to use these classes in your private and professional project.
Examples of what has been done so far with those classes:
Tangible Vispol
Pf Design Media Installation
If you have a nice project with fiducialtuioas3 it would be great if you shared a link with us via mail or in the comments.







Cool! Thanks for sharing.
Just watched the demo video. This looks great!
I’m looking forward to trying it out.
For the TUIO test, why can the code only register fiducial #4? How can I change
this so it supports all of the fiducials in the reactivision library?
//track fiducial #5:
var testProp5:PropObject = tuioManager.getProp(5);
var testPropHandler5:TestFiducialHandler = new TestFiducialHandler();
addChild(testPropHandler5);
testProp.addTUIOPropEventListeners(testPropHandler5);
//also track fiducial #160:
var testProp160:PropObject = tuioManager.getProp(160);
var testPropHandler160:TestFiducialHandler = new TestFiducialHandler();
addChild(testPropHandler160);
testProp.addTUIOPropEventListeners(testPropHandler160);
//… and so on. just add those 4 lines for every fiducial you want to track.
//pretty easy, isn’t it?
can you give example of a handle for a gesture such as touch or pinch?
great work…
hi gavin,
you can find lots of examples on how to use touch and gestures in the as3 touchlib framework on which fiducialtuioas3 is based.
take a look e.g. into the RotatableScalable class. There you can find basic support for moving, scaling and rotation of pictures. You can use RotatableScalable with fiducialtuioas3. all you should have to do is to add following import path in the class:
import tuio.*;
cheers
Hi johannes,
First of, great work!
We are currently programming a multitouch project where we have to use light pens to write in a flash app. when using your libs we get all the blobs into our flash app. but we would like it to use a “mouseOver” function, do you know a way to do so?
Also how to remove the red circles(blob indicators) from the scene.
Hope you can help
Jacob
hi jacob,
are the light pens working with infrared light (just like the ones from johnny chung lee did)?
if so, i see problems when you are trying to discern touches from pen interaction because e.g. the Touchlib, CCV or Touché will recognize both as touch interaction. if you are only using light pen interaction it should however work fine. if you want to use mouseOver functionality just create a listener like this in the class that offers the mouseOver functionality:
The MOUSE_OVER event is being triggered in tuio.TUIOObject in line 89.
>> Also how to remove the red circles(blob indicators) from the scene.
In the class tuio.TUIOCursor in lines 10-17 the circles are being drawn. You can just delete those lines if you don’t need the circles. But the circles are grey and not red, aren’t they?