<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The Connectors</title>
	<atom:link href="http://bubblebird.at/tuioflash/guides/the-connectors/feed/" rel="self" type="application/rss+xml" />
	<link>http://bubblebird.at/tuioflash</link>
	<description>Teaching Flash some new tricks</description>
	<lastBuildDate>Wed, 16 May 2012 15:05:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: gimmix</title>
		<link>http://bubblebird.at/tuioflash/guides/the-connectors/comment-page-1/#comment-20038</link>
		<dc:creator>gimmix</dc:creator>
		<pubDate>Fri, 06 Apr 2012 16:21:51 +0000</pubDate>
		<guid isPermaLink="false">http://bubblebird.at/tuioflash/#comment-20038</guid>
		<description>Well it looks like TouchOSC doesn&#039;t send TUIO commands. So the best way to do this is to implement an IOSCListener which handles the OSC messages sent by TouchOSC. You then only have to start a OSCManager instead of the TuioManager and add your implementation as a msg listener via OSCManager.addMsgListener. You can also add it via OSCManager.addMethod and specify a single OSC command address.</description>
		<content:encoded><![CDATA[<p>Well it looks like TouchOSC doesn&#8217;t send TUIO commands. So the best way to do this is to implement an IOSCListener which handles the OSC messages sent by TouchOSC. You then only have to start a OSCManager instead of the TuioManager and add your implementation as a msg listener via OSCManager.addMsgListener. You can also add it via OSCManager.addMethod and specify a single OSC command address.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phoenix</title>
		<link>http://bubblebird.at/tuioflash/guides/the-connectors/comment-page-1/#comment-20010</link>
		<dc:creator>phoenix</dc:creator>
		<pubDate>Thu, 05 Apr 2012 21:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://bubblebird.at/tuioflash/#comment-20010</guid>
		<description>I&#039;m just trying to get OSC into flash. That&#039;s it. That&#039;s all I need to do. Your implementation description isn&#039;t enough for me. I&#039;ve spent all day on this now. I have it up and working with TuioPad but what I really want it working with is TouchOSC so I can have knobs to tune my game I&#039;m writing with as players playtest. 

Is there a code example of this? It seems like such a simple request. 
Here&#039;s what I have so far... 
package
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	
	import org.tuio.TuioClient;
	import org.tuio.TuioEvent;
	import org.tuio.TuioTouchEvent;
	import org.tuio.connectors.LCConnector;
	import org.tuio.connectors.UDPConnector;
	import org.tuio.debug.TuioDebug;
	import org.tuio.legacy.TouchEvent;
	import org.tuio.osc.IOSCConnector;
	import org.tuio.osc.IOSCConnectorListener;
	import org.tuio.osc.IOSCListener;
	import org.tuio.osc.OSCEvent;
	import org.tuio.osc.OSCMessage;
	import org.tuio.osc.OSCPacket;
	import org.tuio.osc.IOSCConnectorListener; 
	
	public class OSCExample extends Sprite implements IOSCConnector
	{
	

		public function OSCExample()
		{
			var tc:TuioClient = new TuioClient(new UDPConnector
				(&quot;192.168.0.12&quot;, 3333)); 
			tc.addListener(TuioDebug.init(stage)); 
			//displays touches
			
			
			//draw rect
			var myRect:MovieClip = new MovieClip(); 
			myRect.graphics.beginFill(0x6633cc); 
			myRect.graphics.drawRect(0,0,200,200); 
			
			//add listener to rect 
			myRect.addEventListener(TuioTouchEvent.TOUCH_DOWN, onTouch); 
			stage.addChild(myRect); 
			
			addEventListener(OSCEvent.OSC_DATA, addListener); 
			}
		
		public function addListener(listener:IOSCConnectorListener):void 
		{
			//packet is the ByteArray containing the raw OSCPacket
			for each(var l:IOSCConnectorListener in this.listeners) {
				if (OSCBundle.isBundle(packet)) {
					l.acceptOSCPacket(new OSCBundle(packet));
				} else if (OSCMessage.isMessage(packet)) {
					l.acceptOSCPacket(new OSCMessage(packet));
				} else {
					//error handling
				}
			}
		}
		
//		public function receiveOSCMessage(e:OSCMessage):void {
//			trace(e); 
//		}
		public function  removeListener(listener:IOSCConnectorListener):void {
			
		}
		
		public function sendOSCPacket(oscPacket:OSCPacket):void {}
		
		public function close():void {} 
		
		public function onTouch(e:TuioTouchEvent):void {
			trace(&quot;touchdown!&quot;); 
		}
	
	
	}
}</description>
		<content:encoded><![CDATA[<p>I&#8217;m just trying to get OSC into flash. That&#8217;s it. That&#8217;s all I need to do. Your implementation description isn&#8217;t enough for me. I&#8217;ve spent all day on this now. I have it up and working with TuioPad but what I really want it working with is TouchOSC so I can have knobs to tune my game I&#8217;m writing with as players playtest. </p>
<p>Is there a code example of this? It seems like such a simple request.<br />
Here&#8217;s what I have so far&#8230;<br />
package<br />
{<br />
	import flash.display.MovieClip;<br />
	import flash.display.Sprite;</p>
<p>	import org.tuio.TuioClient;<br />
	import org.tuio.TuioEvent;<br />
	import org.tuio.TuioTouchEvent;<br />
	import org.tuio.connectors.LCConnector;<br />
	import org.tuio.connectors.UDPConnector;<br />
	import org.tuio.debug.TuioDebug;<br />
	import org.tuio.legacy.TouchEvent;<br />
	import org.tuio.osc.IOSCConnector;<br />
	import org.tuio.osc.IOSCConnectorListener;<br />
	import org.tuio.osc.IOSCListener;<br />
	import org.tuio.osc.OSCEvent;<br />
	import org.tuio.osc.OSCMessage;<br />
	import org.tuio.osc.OSCPacket;<br />
	import org.tuio.osc.IOSCConnectorListener; </p>
<p>	public class OSCExample extends Sprite implements IOSCConnector<br />
	{</p>
<p>		public function OSCExample()<br />
		{<br />
			var tc:TuioClient = new TuioClient(new UDPConnector<br />
				(&#8220;192.168.0.12&#8243;, 3333));<br />
			tc.addListener(TuioDebug.init(stage));<br />
			//displays touches</p>
<p>			//draw rect<br />
			var myRect:MovieClip = new MovieClip();<br />
			myRect.graphics.beginFill(0x6633cc);<br />
			myRect.graphics.drawRect(0,0,200,200); </p>
<p>			//add listener to rect<br />
			myRect.addEventListener(TuioTouchEvent.TOUCH_DOWN, onTouch);<br />
			stage.addChild(myRect); </p>
<p>			addEventListener(OSCEvent.OSC_DATA, addListener);<br />
			}</p>
<p>		public function addListener(listener:IOSCConnectorListener):void<br />
		{<br />
			//packet is the ByteArray containing the raw OSCPacket<br />
			for each(var l:IOSCConnectorListener in this.listeners) {<br />
				if (OSCBundle.isBundle(packet)) {<br />
					l.acceptOSCPacket(new OSCBundle(packet));<br />
				} else if (OSCMessage.isMessage(packet)) {<br />
					l.acceptOSCPacket(new OSCMessage(packet));<br />
				} else {<br />
					//error handling<br />
				}<br />
			}<br />
		}</p>
<p>//		public function receiveOSCMessage(e:OSCMessage):void {<br />
//			trace(e);<br />
//		}<br />
		public function  removeListener(listener:IOSCConnectorListener):void {</p>
<p>		}</p>
<p>		public function sendOSCPacket(oscPacket:OSCPacket):void {}</p>
<p>		public function close():void {} </p>
<p>		public function onTouch(e:TuioTouchEvent):void {<br />
			trace(&#8220;touchdown!&#8221;);<br />
		}</p>
<p>	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cyancdesign</title>
		<link>http://bubblebird.at/tuioflash/guides/the-connectors/comment-page-1/#comment-13977</link>
		<dc:creator>cyancdesign</dc:creator>
		<pubDate>Tue, 06 Dec 2011 21:51:16 +0000</pubDate>
		<guid isPermaLink="false">http://bubblebird.at/tuioflash/#comment-13977</guid>
		<description>Has this happened to anyone? I&#039;m trying to build out an application in Flex, making an AIR app, connected via UDP. 

It&#039;ll connect just fine once, then I&#039;ll close it. The 2nd and 3rd time I try to run it, it give me this error: Error #2002: Operation attempted on invalid socket.

Then the 4th time, it&#039;ll run properly again.

I&#039;ve tried to force the connection to close with .close() before the app closes to clear the socket, but the command isn&#039;t closing the connection.</description>
		<content:encoded><![CDATA[<p>Has this happened to anyone? I&#8217;m trying to build out an application in Flex, making an AIR app, connected via UDP. </p>
<p>It&#8217;ll connect just fine once, then I&#8217;ll close it. The 2nd and 3rd time I try to run it, it give me this error: Error #2002: Operation attempted on invalid socket.</p>
<p>Then the 4th time, it&#8217;ll run properly again.</p>
<p>I&#8217;ve tried to force the connection to close with .close() before the app closes to clear the socket, but the command isn&#8217;t closing the connection.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gimmix</title>
		<link>http://bubblebird.at/tuioflash/guides/the-connectors/comment-page-1/#comment-9240</link>
		<dc:creator>gimmix</dc:creator>
		<pubDate>Tue, 09 Aug 2011 21:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://bubblebird.at/tuioflash/#comment-9240</guid>
		<description>The TuioSimulator doesn&#039;t support TCP so I would suggest using the UDPConnector or a bridge.</description>
		<content:encoded><![CDATA[<p>The TuioSimulator doesn&#8217;t support TCP so I would suggest using the UDPConnector or a bridge.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kumar</title>
		<link>http://bubblebird.at/tuioflash/guides/the-connectors/comment-page-1/#comment-9080</link>
		<dc:creator>Kumar</dc:creator>
		<pubDate>Fri, 05 Aug 2011 10:22:01 +0000</pubDate>
		<guid isPermaLink="false">http://bubblebird.at/tuioflash/#comment-9080</guid>
		<description>Hi Gimmix,
I am trying to use your library for writing multitouch application and want to test with the standard TuioSimulator.
I am using TCP Connector with host as 127.0.0.1 and port as 3333 in my as3 class.

However it gives me
ioErrorHandler: [IOErrorEvent type=&quot;ioError&quot; bubbles=false cancelable=false eventPhase=2 text=&quot;Error #2031: Socket Error. URL: 127.0.0.1&quot;]
error.

Can you please help</description>
		<content:encoded><![CDATA[<p>Hi Gimmix,<br />
I am trying to use your library for writing multitouch application and want to test with the standard TuioSimulator.<br />
I am using TCP Connector with host as 127.0.0.1 and port as 3333 in my as3 class.</p>
<p>However it gives me<br />
ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2031: Socket Error. URL: 127.0.0.1"]<br />
error.</p>
<p>Can you please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johannes</title>
		<link>http://bubblebird.at/tuioflash/guides/the-connectors/comment-page-1/#comment-8989</link>
		<dc:creator>johannes</dc:creator>
		<pubDate>Mon, 01 Aug 2011 14:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://bubblebird.at/tuioflash/#comment-8989</guid>
		<description>Unfortunately, as far as I know neither Georg Kaindl&#039;s nor Mehmet Akten&#039;s TCP bridge work with the TCP implementation of tuio-as3.</description>
		<content:encoded><![CDATA[<p>Unfortunately, as far as I know neither Georg Kaindl&#8217;s nor Mehmet Akten&#8217;s TCP bridge work with the TCP implementation of tuio-as3.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gimmix</title>
		<link>http://bubblebird.at/tuioflash/guides/the-connectors/comment-page-1/#comment-4006</link>
		<dc:creator>gimmix</dc:creator>
		<pubDate>Sun, 20 Feb 2011 15:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://bubblebird.at/tuioflash/#comment-4006</guid>
		<description>Make sure you have the right port set up. Which bridge are you using?</description>
		<content:encoded><![CDATA[<p>Make sure you have the right port set up. Which bridge are you using?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mnu7</title>
		<link>http://bubblebird.at/tuioflash/guides/the-connectors/comment-page-1/#comment-3998</link>
		<dc:creator>mnu7</dc:creator>
		<pubDate>Sun, 20 Feb 2011 10:43:24 +0000</pubDate>
		<guid isPermaLink="false">http://bubblebird.at/tuioflash/#comment-3998</guid>
		<description>I got same error 
” ioErrorHandler: [IOErrorEvent type=&quot;ioError&quot; bubbles=false cancelable=false eventPhase=2 text=&quot;Error #2031: Socket Error. URL: 127.0.0.1&quot;] ” 
I am trying to use TCP connector

and Bridge is running before I start my flash application.</description>
		<content:encoded><![CDATA[<p>I got same error<br />
” ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2031: Socket Error. URL: 127.0.0.1"] ”<br />
I am trying to use TCP connector</p>
<p>and Bridge is running before I start my flash application.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gimmix</title>
		<link>http://bubblebird.at/tuioflash/guides/the-connectors/comment-page-1/#comment-3066</link>
		<dc:creator>gimmix</dc:creator>
		<pubDate>Thu, 06 Jan 2011 17:33:28 +0000</pubDate>
		<guid isPermaLink="false">http://bubblebird.at/tuioflash/#comment-3066</guid>
		<description>Ah I just noticed you used the demo code from gkaindl&#039;s upd-lc bridge website. That actually should work even without my library. If you use the LCConnector you simply have to run the bridge without any arguments ad it will default to the right values to work with the library.

The ioerror looks like you are trying to use the TCPConnector. Make sure your bridge/tracker is already running when you start your flash application.</description>
		<content:encoded><![CDATA[<p>Ah I just noticed you used the demo code from gkaindl&#8217;s upd-lc bridge website. That actually should work even without my library. If you use the LCConnector you simply have to run the bridge without any arguments ad it will default to the right values to work with the library.</p>
<p>The ioerror looks like you are trying to use the TCPConnector. Make sure your bridge/tracker is already running when you start your flash application.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dwight</title>
		<link>http://bubblebird.at/tuioflash/guides/the-connectors/comment-page-1/#comment-3056</link>
		<dc:creator>Dwight</dc:creator>
		<pubDate>Wed, 05 Jan 2011 23:37:34 +0000</pubDate>
		<guid isPermaLink="false">http://bubblebird.at/tuioflash/#comment-3056</guid>
		<description>I still get this error &quot; ioErrorHandler: [IOErrorEvent type=&quot;ioError&quot; bubbles=false cancelable=false eventPhase=2 text=&quot;Error #2031: Socket Error. URL: 127.0.0.1&quot;] &quot;  I&#039;m guessing I just don&#039;t know how to set up the connector.</description>
		<content:encoded><![CDATA[<p>I still get this error &#8221; ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2031: Socket Error. URL: 127.0.0.1"] &#8221;  I&#8217;m guessing I just don&#8217;t know how to set up the connector.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

