<?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: Tutorial &#8211; AS3 XML Sockets</title>
	<atom:link href="http://www.flashenabledblog.com/2007/06/05/tutorial-as3-xml-sockets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flashenabledblog.com/2007/06/05/tutorial-as3-xml-sockets/</link>
	<description>A Blog covering Air, Flash, Flex, Illustrator and Photoshop</description>
	<lastBuildDate>Sun, 11 Sep 2011 02:17:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Schafkopf</title>
		<link>http://www.flashenabledblog.com/2007/06/05/tutorial-as3-xml-sockets/comment-page-1/#comment-240</link>
		<dc:creator>Schafkopf</dc:creator>
		<pubDate>Thu, 20 Nov 2008 15:43:06 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/2007/06/05/tutorial-as3-xml-sockets/#comment-240</guid>
		<description>It&#039;s actually
xmlSocket.addEventListener(DataEvent.DATA, onData);
But the XML data has to be decoded manually (misleading class name!):
var xml = new XML(DataEvent.data);</description>
		<content:encoded><![CDATA[<p>It&#8217;s actually<br />
xmlSocket.addEventListener(DataEvent.DATA, onData);<br />
But the XML data has to be decoded manually (misleading class name!):<br />
var xml = new XML(DataEvent.data);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Biga</title>
		<link>http://www.flashenabledblog.com/2007/06/05/tutorial-as3-xml-sockets/comment-page-1/#comment-239</link>
		<dc:creator>Biga</dc:creator>
		<pubDate>Tue, 07 Oct 2008 12:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/2007/06/05/tutorial-as3-xml-sockets/#comment-239</guid>
		<description>I&#039;m not used to AS3 but I guess the principle is the same, you should set an eventListener with the event Event.ONDATA or ONXML (I guess, I don&#039;t have AS3 doc here), and then catch the string (or XML-node)</description>
		<content:encoded><![CDATA[<p>I&#8217;m not used to AS3 but I guess the principle is the same, you should set an eventListener with the event Event.ONDATA or ONXML (I guess, I don&#8217;t have AS3 doc here), and then catch the string (or XML-node)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Santiago Andrade</title>
		<link>http://www.flashenabledblog.com/2007/06/05/tutorial-as3-xml-sockets/comment-page-1/#comment-238</link>
		<dc:creator>Santiago Andrade</dc:creator>
		<pubDate>Fri, 05 Sep 2008 22:03:49 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/2007/06/05/tutorial-as3-xml-sockets/#comment-238</guid>
		<description>I see you can send data, but i cant receive data, how can i do that?</description>
		<content:encoded><![CDATA[<p>I see you can send data, but i cant receive data, how can i do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos Pinho</title>
		<link>http://www.flashenabledblog.com/2007/06/05/tutorial-as3-xml-sockets/comment-page-1/#comment-237</link>
		<dc:creator>Carlos Pinho</dc:creator>
		<pubDate>Wed, 12 Mar 2008 19:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/2007/06/05/tutorial-as3-xml-sockets/#comment-237</guid>
		<description>tnx m8</description>
		<content:encoded><![CDATA[<p>tnx m8</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yosef FLomin</title>
		<link>http://www.flashenabledblog.com/2007/06/05/tutorial-as3-xml-sockets/comment-page-1/#comment-236</link>
		<dc:creator>Yosef FLomin</dc:creator>
		<pubDate>Wed, 12 Mar 2008 19:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/2007/06/05/tutorial-as3-xml-sockets/#comment-236</guid>
		<description>oH, and you need to replace the quotation marks as this form converts them into symbols rather than quotes that flash understands</description>
		<content:encoded><![CDATA[<p>oH, and you need to replace the quotation marks as this form converts them into symbols rather than quotes that flash understands</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yosef FLomin</title>
		<link>http://www.flashenabledblog.com/2007/06/05/tutorial-as3-xml-sockets/comment-page-1/#comment-235</link>
		<dc:creator>Yosef FLomin</dc:creator>
		<pubDate>Wed, 12 Mar 2008 19:02:18 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/2007/06/05/tutorial-as3-xml-sockets/#comment-235</guid>
		<description>you have some extra spaces in that code that gives errors.
Heres the fixed code:

var xml_s=new XMLSocket();

xml_s.connect(&#039;yosefflomin&#039;,8080);

xml_s.addEventListener(Event.CONNECT,xmlsocket);//OnConnect//

xml_s.addEventListener(Event.CLOSE,xmlsocket);//OnDisconnect//

xml_s.addEventListener(IOErrorEvent.IO_ERROR,xmlsocket);//Unable To Connect/

function xmlsocket(Event):void{

switch(Event.type){
case &#039;ioError&#039;: //Unable to Connect :(//
trace(&#039;Couldnt Connect&#039;);
break;

case &#039;connect&#039;: //Connected :)//
trace(&#039;Connected!&#039;);
break;

case &#039;close&#039;: //OnDisconnect :( //
trace(&#039;Disconnected!&#039;);
break; } }

xml_s.send(&quot;MESSAGE HERE&quot;);</description>
		<content:encoded><![CDATA[<p>you have some extra spaces in that code that gives errors.<br />
Heres the fixed code:</p>
<p>var xml_s=new XMLSocket();</p>
<p>xml_s.connect(&#8216;yosefflomin&#8217;,8080);</p>
<p>xml_s.addEventListener(Event.CONNECT,xmlsocket);//OnConnect//</p>
<p>xml_s.addEventListener(Event.CLOSE,xmlsocket);//OnDisconnect//</p>
<p>xml_s.addEventListener(IOErrorEvent.IO_ERROR,xmlsocket);//Unable To Connect/</p>
<p>function xmlsocket(Event):void{</p>
<p>switch(Event.type){<br />
case &#8216;ioError&#8217;: //Unable to Connect <img src='http://www.flashenabledblog.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> //<br />
trace(&#8216;Couldnt Connect&#8217;);<br />
break;</p>
<p>case &#8216;connect&#8217;: //Connected <img src='http://www.flashenabledblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> //<br />
trace(&#8216;Connected!&#8217;);<br />
break;</p>
<p>case &#8216;close&#8217;: //OnDisconnect <img src='http://www.flashenabledblog.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  //<br />
trace(&#8216;Disconnected!&#8217;);<br />
break; } }</p>
<p>xml_s.send(&#8220;MESSAGE HERE&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: palani</title>
		<link>http://www.flashenabledblog.com/2007/06/05/tutorial-as3-xml-sockets/comment-page-1/#comment-234</link>
		<dc:creator>palani</dc:creator>
		<pubDate>Tue, 03 Jul 2007 06:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/2007/06/05/tutorial-as3-xml-sockets/#comment-234</guid>
		<description>I want a resource files</description>
		<content:encoded><![CDATA[<p>I want a resource files</p>
]]></content:encoded>
	</item>
</channel>
</rss>

