{"id":6,"date":"2007-03-26T20:29:00","date_gmt":"2007-03-27T01:29:00","guid":{"rendered":"http:\/\/www.tigoe.com\/pcomp\/code2\/?p=6"},"modified":"2010-03-09T12:41:39","modified_gmt":"2010-03-09T17:41:39","slug":"serial-server-for-flash-etc","status":"publish","type":"post","link":"https:\/\/www.tigoe.com\/pcomp\/code\/Processing\/6\/","title":{"rendered":"Serial  Server for Flash, etc."},"content":{"rendered":"<p>I got tired of the problems with the various serial server solutions for Flash, so I wrote this Processing sketch to do the job. It&#8217;s functional, but I still need to tweak it a bit. But it will allow you to connect a Flash movie to a serial port by making an XML socket to localhost in order to access the serial port. Sample test ActionScript code is at the bottom.<\/p>\n<p>Thanks to Shawn van Every for the latest updates, and Actionscript 3 code.<\/p>\n<p><!--more--><\/p>\n<pre class=\"brush:processing; light:true\">[include file=\"..\/..\/code\/Processing\/SerialServerFlash\/SerialServerFlash.pde\"  clean=\"true\"]<\/pre>\n<hr \/>\n<p>Test ActionScript Code: Thanks to Shawn Van Every and Dan O&#8217;Sullivan for this code.<\/p>\n<pre class=\"brush:as3; light:true\">[include file=\"..\/..\/code\/actionscript\/SocketClient.as3\"  clean=\"true\"]<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I got tired of the problems with the various serial server solutions for Flash, so I wrote this Processing sketch to do the job&#8230;.  But it will allow you to connect a Flash movie to a serial port by making an XML socket to localhost in order to access the serial port.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-Processing"],"_links":{"self":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":8,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts\/6\/revisions"}],"predecessor-version":[{"id":865,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts\/6\/revisions\/865"}],"wp:attachment":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/media?parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/categories?post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/tags?post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}