<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" 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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>NeatTools AS3 Project</title>
	
	<link>http://sambaker.net/neattools</link>
	<description>And other things thrown in for good measure.</description>
	<lastBuildDate>Fri, 01 Apr 2011 15:16:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/neattoolsAS3" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="neattoolsas3" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Let there be light.</title>
		<link>http://sambaker.net/neattools/?p=235</link>
		<comments>http://sambaker.net/neattools/?p=235#comments</comments>
		<pubDate>Fri, 01 Apr 2011 15:15:54 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=235</guid>
		<description><![CDATA[Engine works. Button passes it&#8217;s value to the LED, and the LED checks it&#8217;s value and lights up.  The potential question now, is is my current mechanism for pinging the connection a bottleneck? I mean it is, but how bad of one.  Right now, Connections are kept in an array in the Workspace.  Connections have [...]]]></description>
			<content:encoded><![CDATA[<p>Engine works. Button passes it&#8217;s value to the LED, and the LED checks it&#8217;s value and lights up.  The potential question now, is is my current mechanism for pinging the connection a bottleneck? I mean it is, but how bad of one.  Right now, Connections are kept in an array in the Workspace.  Connections have two modules as properties moduleA and moduleB.  So, when the button is pressed, it first has to find all the connections where moduleA is the button, then pass moduleA&#8217;s value to moduleB&#8217;s engine.  The more modules I have the slower this process will be obviously, but how fast will it reach critical mass. I will probably need to devise some benchmarking. Anyway&#8230;</p>
<p>
<object width="400" height="400">
<param name="movie" value="source/neattools31.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<param name="allowScriptAccess" value="always"></param>
<embed type="application/x-shockwave-flash" width="400" height="400" src="source/neattools31.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=235</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Graphical Assets</title>
		<link>http://sambaker.net/neattools/?p=232</link>
		<comments>http://sambaker.net/neattools/?p=232#comments</comments>
		<pubDate>Mon, 28 Mar 2011 19:59:34 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=232</guid>
		<description><![CDATA[So I took a little detour on actual progress, and took a stab a some alternative looks for the modules.  To this point the modules were drawn using the drawing api in as3.  I decided to design a button and an led in the Flash IDE and then bring them into my project as graphical [...]]]></description>
			<content:encoded><![CDATA[<p>So I took a little detour on actual progress, and took a stab a some alternative looks for the modules.  To this point the modules were drawn using the drawing api in as3.  I decided to design a button and an led in the Flash IDE and then bring them into my project as graphical assets.  I&#8217;d ultimately like to have skins for this, I could do an original NeatTools skin, but I though I would try an remove some of the ambiguity of the original modules, and make them a little prettier.  No functionality yet, I have the LED on state ready to go, I just need to code it.</p>
<p>
<object width="400" height="400">
<param name="movie" value="source/neattools30.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<param name="allowScriptAccess" value="always"></param>
<embed type="application/x-shockwave-flash" width="400" height="400" src="source/neattools30.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=232</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Connections: Take one</title>
		<link>http://sambaker.net/neattools/?p=225</link>
		<comments>http://sambaker.net/neattools/?p=225#comments</comments>
		<pubDate>Sun, 27 Mar 2011 05:56:26 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=225</guid>
		<description><![CDATA[So like last time, i&#8217;m starting by hard-wiring a connection to start with, then I&#8217;ll go back to how to create them dynamically.   And since my last post, I&#8217;ve rethought the connections questions and I&#8217;m going to make it more outside in, rather than trying to figure out some hacky way of having children and [...]]]></description>
			<content:encoded><![CDATA[<p>So like last time, i&#8217;m starting by hard-wiring a connection to start with, then I&#8217;ll go back to how to create them dynamically.   And since my last post, I&#8217;ve rethought the connections questions and I&#8217;m going to make it more outside in, rather than trying to figure out some hacky way of having children and grandchildren telling parents what to do. So&#8230; to that end, I created a neatWorkspace class. Structure as follows:</p>
<p>Workspace is the parent of everything (so far). It has children button  and LED. They have children input and output (or in buttons case, inputs and outputs) Workspace also has a child Connection A, which contains a reference to  button and LED, and which output of button will be connecting to what input of LED. Connection A has a child neatWire (the graphic  connection) which is a line from button output, to LED input.</p>
<p>
<object width="400" height="400">
<param name="movie" value="source/neattools29.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<param name="allowScriptAccess" value="always"></param>
<embed type="application/x-shockwave-flash" width="400" height="400" src="source/neattools29.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
<p>the wires fail if you try to create new ones by dragging out lines, but they&#8217;re just holdovers, I haven&#8217;t revisited them yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=225</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back to NeatTools</title>
		<link>http://sambaker.net/neattools/?p=220</link>
		<comments>http://sambaker.net/neattools/?p=220#comments</comments>
		<pubDate>Fri, 18 Mar 2011 14:26:02 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[neattools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=220</guid>
		<description><![CDATA[So, I&#8217;ve started over with NeatTools.  There has been some recent interest in rebooting the real NeatTools, which got me more interested in the AS3 versions again.  Last time, I got bogged down with figuring out how to manage the connections, so I&#8217;m rebuilding it from scratch, and hopefully I can figure out the best [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;ve started over with NeatTools.  There has been some recent interest in rebooting the <a href="http://neattools.org" target="_blank">real NeatTools</a>, which got me more interested in the AS3 versions again.  Last time, I got bogged down with figuring out how to manage the connections, so I&#8217;m rebuilding it from scratch, and hopefully I can figure out the best way to handle these pesky connections between modules. I have a lot of questions about how to handle them though.</p>
<ul>
<li>Should connections be independent objects with references to the modules they connect?</li>
<li>Should modules contain the connection object instead?</li>
<li>Should connections just be imaginary and instead should modules contain a reference to any module they are connected to?</li>
<li>Should there be duplicate references (ie, should moduleA know it&#8217;s connected to moduleB and vice versa)?</li>
<li>Should modules only know what they&#8217;re outputting to, but not care what might be plugged into the back of them?</li>
</ul>
<p>Anyway, here&#8217;s the current version. You can drag out a line from the outputs, but the connection function doesn&#8217;t do really anything at the moment, it just draws a strange line (so I can see something happened).</p>
<p>
<object width="400" height="400">
<param name="movie" value="source/neattools28.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<param name="allowScriptAccess" value="always"></param>
<embed type="application/x-shockwave-flash" width="400" height="400" src="source/neattools28.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=220</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>NeatTools on Android (sort of)</title>
		<link>http://sambaker.net/neattools/?p=212</link>
		<comments>http://sambaker.net/neattools/?p=212#comments</comments>
		<pubDate>Tue, 01 Mar 2011 22:18:36 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>
		<category><![CDATA[air]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[neattools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=212</guid>
		<description><![CDATA[Getting back to NeatTools related stuff, I&#8217;ve been playing around with the Android SDK and the Adobe Air 2.5 SDK, with support for Android.  As one of my first tests, I created an Android version of the NeatTool AS3.  Now, I don&#8217;t have an actual android phone. Or any phone for that matter, but I [...]]]></description>
			<content:encoded><![CDATA[<p>Getting back to NeatTools related stuff, I&#8217;ve been playing around with the Android SDK and the Adobe Air 2.5 SDK, with support for Android.  As one of my first tests, I created an Android version of the NeatTool AS3.  Now, I don&#8217;t have an actual android phone. Or any phone for that matter, but I do have the emulator that comes with the SDK and here&#8217;s a screen shot:</p>
<p><a href="http://sambaker.net/neattools/wp-content/uploads/2011/03/androidneattools.png" rel="lightbox[212]"><img class="size-medium wp-image-214 alignnone" title="androidneattools" src="http://sambaker.net/neattools/wp-content/uploads/2011/03/androidneattools-300x276.png" alt="" width="300" height="276" /></a></p>
<p>It seems to work as well as the Flash version does, which isn&#8217;t all that well, but anyway.  New links can be created, broken, modules can be clicked on or moved around.  I&#8217;d be interested to see how well the connections would work with a touch screen, but until I can get my hands on an actual device, this will have to wait.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=212</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Augmented Reality</title>
		<link>http://sambaker.net/neattools/?p=203</link>
		<comments>http://sambaker.net/neattools/?p=203#comments</comments>
		<pubDate>Wed, 23 Feb 2011 13:44:23 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=203</guid>
		<description><![CDATA[My first foray into the world of augmented reality. FLARToolkit, is a Flash Augmented Reality library, a port of ARToolkit. It handles the detection, homography, and tracking of custom &#8216;markers&#8217;, onto which can be drawn, 3D objects, in this case using the Papervision3D library. To view my example, download and print out my marker here: [...]]]></description>
			<content:encoded><![CDATA[<p>My first foray into the world of augmented reality.  <a href="http://www.libspark.org/wiki/saqoosha/FLARToolKit/en">FLARToolkit</a>, is a Flash Augmented Reality library, a port of ARToolkit.  It handles the detection, homography, and tracking of custom &#8216;markers&#8217;, onto which can be drawn, 3D objects, in this case using the <a href="http://blog.papervision3d.org/">Papervision3D</a> library.</p>
<p>To view my example, download and print out my marker here: <a href="http://www.sambaker.net/aug/marker.pdf" target="_blank">marker.pdf</a>.</p>
<p>Then click allow below to give flash access to your webcam, and hold up the marker.</p>
<p>
<object width="640" height="480">
<param name="movie" value="/aug/Aug.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<param name="allowScriptAccess" value="always"></param>
<embed type="application/x-shockwave-flash" width="640" height="480" src="/aug/Aug.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=203</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chaos</title>
		<link>http://sambaker.net/neattools/?p=201</link>
		<comments>http://sambaker.net/neattools/?p=201#comments</comments>
		<pubDate>Sat, 29 Jan 2011 20:34:54 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=201</guid>
		<description><![CDATA[Here&#8217;s an old Flash project, I updated and converted to AS3. It uses a simple algorithm to draw the familiar triangle fractal. It&#8217;s set to add a point 24 times a second so wait for it&#8230;]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an old Flash project, I updated and converted to AS3.  It uses a simple algorithm to draw the familiar triangle fractal.  It&#8217;s set to add a point 24 times a second so wait for it&#8230;</p>
<p>
<object width="550" height="400">
<param name="movie" value="source/chaos.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<param name="allowScriptAccess" value="always"></param>
<embed type="application/x-shockwave-flash" width="550" height="400" src="source/chaos.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
 </p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=201</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtual Polyhedral Dice</title>
		<link>http://sambaker.net/neattools/?p=195</link>
		<comments>http://sambaker.net/neattools/?p=195#comments</comments>
		<pubDate>Mon, 25 May 2009 21:27:11 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[Other Projects]]></category>
		<category><![CDATA[dice]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=195</guid>
		<description><![CDATA[I&#8217;ve been interested in learning how to play D&#38;D for a while and I recently acquired the Player&#8217;s Handbook so I could read up on the game before I ventured out into said game with others. One of the required items is a set of polyhedral dice for determining various things throughout the game, as [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been interested in learning how to play D&amp;D for a while and I recently acquired the Player&#8217;s Handbook so I could read up on the game before I ventured out into said game with others.  One of the required items is a set of polyhedral dice for determining various things throughout the game, as I&#8217;m sure you all know, and since I didn&#8217;t own a set, I made one.  It&#8217;s very straight forward but I wanted something a little more interesting to look at than text boxes.</p>
<p>Dice after the jump&#8230;</p>
<p><span id="more-195"></span>
<object width="550" height="600">
<param name="movie" value="/dice/dice.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<param name="allowScriptAccess" value="always"></param>
<embed type="application/x-shockwave-flash" width="550" height="600" src="/dice/dice.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=195</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Searching for Elegance</title>
		<link>http://sambaker.net/neattools/?p=193</link>
		<comments>http://sambaker.net/neattools/?p=193#comments</comments>
		<pubDate>Mon, 23 Mar 2009 23:39:10 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=193</guid>
		<description><![CDATA[When you create multiple connections from the same module, they accumulate graphically as they should.  Previously though, they didn&#8217;t deccumulate (if I may make up a word). New connections were added to total number of connections a module had, even if they didn&#8217;t have them anymore.  I had simply forgotten to reduce the number of [...]]]></description>
			<content:encoded><![CDATA[<p>When you create multiple connections from the same module, they accumulate graphically as they should.  Previously though, they didn&#8217;t deccumulate (if I may make up a word). New connections were added to total number of connections a module had, even if they didn&#8217;t have them anymore.  I had simply forgotten to reduce the number of outputs.  No biggie.  But then I found something very frustrating.  If you create multiple connections between two modules. then kill them in the opposite order, everything works perfect.  Try and kill them out of order and poof, the whole system breaks down.  I tried one solution, and it kinda worked, but I quickly realized that I&#8217;d need to create separate lists  of connections for each side of the module and it just felt clunky.  Plus, it had some bugs.  I just think there is a more elegant solution eluding me at the moment.</p>
<p>
<object width="400" height="400">
<param name="movie" value="source/neattools27.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<param name="allowScriptAccess" value="always"></param>
<embed type="application/x-shockwave-flash" width="400" height="400" src="source/neattools27.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=193</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Finally, Visable Lines</title>
		<link>http://sambaker.net/neattools/?p=189</link>
		<comments>http://sambaker.net/neattools/?p=189#comments</comments>
		<pubDate>Thu, 19 Mar 2009 19:43:41 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=189</guid>
		<description><![CDATA[Finally you can have your connections and eat them too. Or see them anyway. I&#8217;ve selected a nice red dashed line for the &#8220;pre-connection&#8221; wire. I hope you like it. In this version (0.1.99) I&#8217;ve also fixed some problems that cropped up when I created the lines.  For modules that were in front of other [...]]]></description>
			<content:encoded><![CDATA[<p>Finally you can have your connections and eat them too. Or see them anyway. I&#8217;ve selected a nice red dashed line for the &#8220;pre-connection&#8221; wire. I hope you like it. In this version (0.1.99) I&#8217;ve also fixed some problems that cropped up when I created the lines.  For modules that were in front of other modules (z depth), when you dragged the wire over the left input area of the intended module, it wouldn&#8217;t activate the input area -I think because the line (which is part of the first module) was in front of it.  So&#8230;now, when you start a new connection, it moves the parent module down to the bottom of the display stack. When just dragging a module, I decided to pull it up to the top of the stack.</p>
<p>I played briefly writing my own dashed line class, and actually wrote a very simple function that drew the connecting line with 10 equally sized dashes and spaces (which scaled as you drew it), but then I found the wonderful dashed line class below:</p>
<p><a href="http://www.cartogrammar.com/blog/drawing-dashed-lines-with-actionscript-3/" target="_blank">http://www.cartogrammar.com/blog/drawing-dashed-lines-with-actionscript-3/</a></p>
<p>
<object width="400" height="400">
<param name="movie" value="source/neattools26.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<param name="allowScriptAccess" value="always"></param>
<embed type="application/x-shockwave-flash" width="400" height="400" src="source/neattools26.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=189</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

