Tuio Flash Blog

Fixes for common problems

In this article we will give you hints on how to fix problems developers use to stumble upon.

LocalConnection only works within Flash but not the standalone player
To fix this you have to set the "Local playback security" to "access network only" in the Publish Settings.

I won't receive any tracking data although my tracker is in Flash/TCP mode
Most currently trackers that have a Flash/TCP mode use the old XML via TCP method which isn't supported by our library. What you can do is Georg Kaindl's udp-lc bridge or Touché tracker. We'll compile a list of supported trackers as soon as the library is closer to beeing finished.

Comments (15) Trackbacks (0)
  1. Am I able to get a log file of the input from the LCconnection? I would like to get a list of data equivalent to the “verbose output” function in reacTIVision.

  2. Hi maybe OSCBundle.getPacketInfo() is what you are looking for. It simply generates a string of the parsed OSCBundle and it sub OSCPackets. If you add a trace of that to the OSCManager.acceptOSCPacket() function with a type check on the oscPacket paramter against the OSCBundle class that should do. Something like the following:

    1. public function acceptOSCPacket(oscPacket:OSCPacket):void {
    2.    if (running) {
    3.       if(oscPacket is OSCBundle) trace((oscPacket as OSCBundle).getPacketInfo());
    4.          this._currentPacket = oscPacket;
    5.          this.distributeOSCPacket(this._currentPacket);
    6.       }
    7.    }
  3. Hi
    I am fairly inexperienced with AIR environment, but I have used your lib to create a project and it works fine in Flash CS5 using UDP to LC bridge and a TUIO simulator. However when I compile the AIR package and install it, nothing happens. Any ideas on what could be causing this? I would have switched to using just the Flash runtime without AIR, but I need an SQLite db as data source, which is not available in Flash. Thanks.

  4. Just to add, the “local playback security” is not available when compiling into AIR 2.0 file.

  5. Just use the UDPConnector then ;)

  6. Hi
    I’m using Tuio simulator with the UDP to LC bridge and the test swf works fine. Then tried to use your TUIOManagerExample code to check that its working with Flash but keep getting “Error #2031: Socket Error. URL: 127.0.0.1″. Do you know why? Thanks!

  7. Eek, sorry, have it working now, just a stupid mistake!! Thanks, its working brilliantly!

  8. Glad you could fix it. If you have any further questions or problems just shout ;)

  9. Thanks for the suggestions, I have finally got my app working with AIR 2.0 and sqlite. In the end I used the TCPConnector and it all just worked as expected.

  10. What is the best simulator to test applications as I have read the simTouch is not compatible? I am on a mac.

    Thanks

  11. Hi
    I’d suggest the standard TUIO Simulator from the tuio.org website -> http://www.tuio.org/?software under simulators
    If you happen to have an iPad or iPhone/iPodTouch you could download the tuio app for touch testing

  12. I was having trouble getting the TuioDebug overlays to work in my own project. I finally narrowed it down to an issue with having Flash UI components in my library (e.g. RadioButton). If I remove the component from my project the overlays work, if I put it back in, I get no compile or runtime errors, but the TuioDebug overlays do not work.

    Has anyone experienced this or have any ideas why the conflict might arise?

  13. To follow up my comment above, I now believe this is caused by having TLFTextfields in the flash project. I managed to get it to work by replacing all of my TLFTextFields with “Classic” Textfields

  14. thanks for the input I”ll have a look at it and will forward it to the guy who implemented the TuioDebug part of the library.

  15. hi,
    i am the one who is responsible for TuioDebug. actually, i have troubles to reproduce the TLFTextField problem as I usually do not work with Flash UI components. I usually work with Flash Builder only. However, I have got Flash CS 4 installed on my computer.

    @Dave: Have you got a Flash file with which I can reproduce the problem? You can send it to me via mail to lagerkoller [ at ] vildan.de.


Leave a comment


No trackbacks yet.