Fire up the SVN, Touchlib's AS3 TUIO library has been updated! Along with RotatableScalable. These files have been my introduction to developing Flash AS3 apps for multi-touch. This is a great thing, changes that have been mentioned in the NUIGroup Forum Threads have been added in. And even suggestions from this site has been added as well.
- Addition of DX/DY event sending. Important for getting multi-touch FluidSolver to work
- returnBlobs(); function was added into TUIO.as ~ a personal favorite of mine ~ read more
- RotatableScalable scaling registration point bug fixed ~ read more
- and TUIO debug mode ON/OFF bug fixed, all tracking diplays can be turned off without errors
Now that Touchlib is once again updated. I've integrated the new files into my own collection of experiments., and went through each one to make sure no problems arose. Another thing I began checking was using Flash Player's Standalone Debugger version 10. For those who don't have Flash to work with and do not have a stand alone player, that's where you can find one.
There is one catch with the stand alone player, any error in the Flash with completely halt it and throw up an error. It gets a little annoying, I know because some of my own apps were breaking. So this morning I checked each one. And here were some things that kept tripping up.
CrateTest.fla
The use of Box2DFlash, there was an extra bit in a function that was no longer needed.
<span class="kwd">if</span><span class="pun">(</span><span class="pln">TUIO</span><span class="pun">.</span><span class="pln">OBJECT_ARRAY</span><span class="pun">.</span><span class="pln">length </span><span class="pun">!=</span><span class="pln"> blobs</span><span class="pun">.</span><span class="pln">length</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln"> </span><span class="pln">removeBlob</span><span class="pun">(</span><span class="pln">blobs</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">id</span><span class="pun">); } </span>
That is from an older way of keeping track of blobs on the stage. Now I still haven't had the full chance to go back and really clean up the physics app, but one day soon I shall, I hope.
Rings
For that, there was just an bad character in a file I was linking too. I was throwing in a wierd character, I just replaced it with the proper character.
New File: touchMagnify version 1
At first I wasn't going to add this in. But it is functioning now.
Here's what happened, whenever I pressed on the close button for the magnification areas, it would error. But the error would come from RotatableScalable, which was nested inside the movie clip I was trying to add and remove from the stage.
What was happening was even though the press down would close and remove the magnification area, the RotatableScalable part of it would still try and read the MOUSE_UP within it even though it no longer existed. Propagation was my problem. If I have my terminology right, the TouchEvent kept bubbling through all the items unless it was told to stop. All I need to add was e.stopPropagation();
~I'll be writing more about this new app soon.
Wrapping up
If you haven't grabbed either my experiment files or the updated Touchlib files. Do it now. There are excellent fixes to start using.
Happy Experimenting.
Time for me to go put together a new grill. (^_^)//
Tags: Actionscript 3.0, Multi-Touch, Touchlib, TUIO, update

Hi Chris,
I have a quick question…is it possible to use open source tuio libraries such as touchlib with an off the shelf multitouch screen made by a commercial manufacturer? I was confused about this as it seems that touchlib and tmini seem to encourage users to build their own multitouch systems.
thanks,
Ben
One of the main differences between the commercial products and self build ones is the way the software gets the information. Products like the HP touchsmart and touch sensative LCD monitors use a film that uses electricity or sound waves to calculate the distance from the edges. And the Touchlib and Community Core Vision software uses a webcam to collect the points of light on the surface compared to a calibrated grid to interpret the X Y coordinate. The information is then output, Touchlib and CCV use a specific protocol accepted by the community so we all work with the same information across multiple platforms. Commercial products usually make their own output protocol to work with an OS like Windows 7, it seems like the smart business thing to do. It is possible to hack into the commercial protocol and convert it to match the Touchlib/CCV protocol, I know I’ve seens videos of it done.