<?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>Mon, 25 May 2009 21:27:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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>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&#038;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, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been interested in learning how to play D&#038;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.<br />

<object width="550" height="600">
<param name="movie" value="/dice/dice.swf" />
<param name="quality" value="high" />
<param name="wmode" value="window" />
<param name="menu" value="false" />
<param name="bgcolor" value="#FFFFFF" />
<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 name="quality" value="high" />
<param name="wmode" value="window" />
<param name="menu" value="false" />
<param name="bgcolor" value="#FFFFFF" />
<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 name="quality" value="high" />
<param name="wmode" value="window" />
<param name="menu" value="false" />
<param name="bgcolor" value="#FFFFFF" />
<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>
		<item>
		<title>Version 0.1.95</title>
		<link>http://sambaker.net/neattools/?p=185</link>
		<comments>http://sambaker.net/neattools/?p=185#comments</comments>
		<pubDate>Tue, 17 Mar 2009 17:04:10 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=185</guid>
		<description><![CDATA[So I&#8217;ve picked a naming convention. This is version 0.1.95. 0.1 meaning very very pre-alpha and .95 to mean the SVN revision number. I&#8217;ve fixed some bugs from the last version.

First a module can&#8217;t connect to itself anymore.
In the last version, if you hovered over the left input area of a module, then clicked and [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve picked a naming convention. This is version 0.1.95. 0.1 meaning very very pre-alpha and .95 to mean the SVN revision number. I&#8217;ve fixed some bugs from the last version.</p>
<ol>
<li>First a module can&#8217;t connect to itself anymore.</li>
<li>In the last version, if you hovered over the left input area of a module, then clicked and dragged a connection from one module to anywhere on the stage and released it, it would draw a connection to the first module you hovered over.</li>
<li>The LED now outputs it&#8217;s value correctly, allowing for a chain of LEDs.</li>
<li>The Button and Switch can both receive input ala NeatTools, however, unlike NeatTools, they don&#8217;t exhibit their down behavior when fired. They simple pass through the value.</li>
<li>The size of the output and input areas has been changed to more closely match NeatTools. Plus it&#8217;s easier to hit.</li>
<li>And I&#8217;ve re-added the round button that will cycle through the connection drawing options.</li>
</ol>
<p>
<object width="400" height="400">
<param name="movie" value="source/neattools25.swf" />
<param name="quality" value="high" />
<param name="wmode" value="window" />
<param name="menu" value="false" />
<param name="bgcolor" value="#FFFFFF" />
<embed type="application/x-shockwave-flash" width="400" height="400" src="source/neattools25.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=185</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connections You Can Believe In…And See</title>
		<link>http://sambaker.net/neattools/?p=183</link>
		<comments>http://sambaker.net/neattools/?p=183#comments</comments>
		<pubDate>Tue, 17 Mar 2009 00:43:34 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=183</guid>
		<description><![CDATA[Ok, so you still have to use your imagination while making the connections, but once made you&#8217;ll actually be able to see them. And as an added bonus, when you make more than one connection from a module, it adjusts the position of the first connection.
One little problem I&#8217;ve found so far, when you click [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so you still have to use your imagination while making the connections, but once made you&#8217;ll actually be able to see them. And as an added bonus, when you make more than one connection from a module, it adjusts the position of the first connection.</p>
<p>One little problem I&#8217;ve found so far, when you click on an existing connection to kill it, it doesn&#8217;t reset the output point of existing or subsequent connections.  This was anticipated, but I don&#8217;t know how to deal with it right now.</p>
<p>I&#8217;ve also switched to using global variables to track the modules and connections.<br />

<object width="400" height="400">
<param name="movie" value="source/neattools24.swf" />
<param name="quality" value="high" />
<param name="wmode" value="window" />
<param name="menu" value="false" />
<param name="bgcolor" value="#FFFFFF" />
<embed type="application/x-shockwave-flash" width="400" height="400" src="source/neattools24.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=183</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I’ve Made a Connection</title>
		<link>http://sambaker.net/neattools/?p=181</link>
		<comments>http://sambaker.net/neattools/?p=181#comments</comments>
		<pubDate>Sun, 15 Mar 2009 23:25:28 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=181</guid>
		<description><![CDATA[Ok. I think for once, I&#8217;ve figured out the logic side before the graphical side.  In the file below, you can make a connection NeatTools style. Now, you won&#8217;t see anything happen, but a logical connection will be made. In fact the blue connecting line will look like it&#8217;s doing something very strange, but [...]]]></description>
			<content:encoded><![CDATA[<p>Ok. I think for once, I&#8217;ve figured out the logic side before the graphical side.  In the file below, you can make a connection NeatTools style. Now, you won&#8217;t see anything happen, but a logical connection will be made. In fact the blue connecting line will look like it&#8217;s doing something very strange, but trust me it&#8217;s working.</p>
<p>So, for example, click in the right hand edge of the button and drag an invisible connection to the left hand edge of one of the LEDs. Repeat with any of the other modules that were previously connected (except the minus and the division, I don&#8217;t have the top inputs setup, but you can access their left inputs). Now when you click the button, the LEDs will react as if there was a connection. You just can&#8217;t see it. Yet.<br />

<object width="400" height="400">
<param name="movie" value="source/neattools22.swf" />
<param name="quality" value="high" />
<param name="wmode" value="window" />
<param name="menu" value="false" />
<param name="bgcolor" value="#FFFFFF" />
<embed type="application/x-shockwave-flash" width="400" height="400" src="source/neattools22.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=181</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ReleaseOutside</title>
		<link>http://sambaker.net/neattools/?p=178</link>
		<comments>http://sambaker.net/neattools/?p=178#comments</comments>
		<pubDate>Sun, 15 Mar 2009 20:47:23 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=178</guid>
		<description><![CDATA[Sounds like something a dog would do. Anyhow, this functionality is missing from AS3, but it can be recreated.  Essentially, I have allowed for the dragging of modules over the top of each other (hmmm. I just thought of something. Maybe I should make them not able to overlap) Anyway, that new thought aside, [...]]]></description>
			<content:encoded><![CDATA[<p>Sounds like something a dog would do. Anyhow, this functionality is missing from AS3, but it can be recreated.  Essentially, I have allowed for the dragging of modules over the top of each other (hmmm. I just thought of something. Maybe I should make them not able to overlap) Anyway, that new thought aside, I&#8217;ve made it so that even if you overlap a module, or underlap, when you release the mouse, the button, for instance, will now turn off, rather than staying in the on position like it used to.  The more current problem is creating connection and frankly I&#8217;m stuck. I&#8217;ve created hit areas (I&#8217;m not even getting into finding the correct input and output yet.) on the left and right side of every module. when you mouse down on the right side and drag, a line will run from the right side of the module to your mouse.  If you release the mouse, the line dies.  What I can&#8217;t do is figure out how to tell if you&#8217;ve dropped the line in the left input of another module.  The code that detects the inputs and outputs is in the module class and what I can&#8217;t figure out is how I need to reference the two modules I want to connect.<br />

<object width="400" height="400">
<param name="movie" value="source/neattools21.swf" />
<param name="quality" value="high" />
<param name="wmode" value="window" />
<param name="menu" value="false" />
<param name="bgcolor" value="#FFFFFF" />
<embed type="application/x-shockwave-flash" width="400" height="400" src="source/neattools21.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=178</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IE is being a little punk</title>
		<link>http://sambaker.net/neattools/?p=155</link>
		<comments>http://sambaker.net/neattools/?p=155#comments</comments>
		<pubDate>Sun, 15 Mar 2009 13:54:21 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=155</guid>
		<description><![CDATA[My thoroughness is the bane of my existance sometimes.  I typically use Firefox, but being a web designer, I feel the need to ensure cross-browser compatibility.  There seems to be an issue with either the theme I&#8217;m using or the plugins or the html tags that prevents IE 6 (I haven&#8217;t even tried [...]]]></description>
			<content:encoded><![CDATA[<p>My thoroughness is the bane of my existance sometimes.  I typically use Firefox, but being a web designer, I feel the need to ensure cross-browser compatibility.  There seems to be an issue with either the theme I&#8217;m using or the plugins or the html tags that prevents IE 6 (I haven&#8217;t even tried the others yet) from rendering my posts correctly.  It definitely revolves around my syntax highlighter, but whether it is the html (ie, &lt;pre&gt;) or the javascript in the plugin, or the sheer length of the lines, or another plugin for that matter that is putting the kybosh on everything, I can&#8217;t say.  In some cases, it just doesn&#8217;t highlight the code at all, in others it treats it like a quote, in others actually eats the code.  I&#8217;ve been trying some combination that will make it all work, but nothing yet&#8230;grrrrr.</p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=155</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I love Points</title>
		<link>http://sambaker.net/neattools/?p=138</link>
		<comments>http://sambaker.net/neattools/?p=138#comments</comments>
		<pubDate>Fri, 13 Mar 2009 08:30:45 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=138</guid>
		<description><![CDATA[I&#8217;d never really looked into the new Point class until tonight, and I must say, I love it. Just for the organizational aspect alone, rather than tracking individual x and y coordinates, but it has some other nice features, like interpolate, which will find a point between two points from 0% to 100%, so for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;d never really looked into the new Point class until tonight, and I must say, I love it. Just for the organizational aspect alone, rather than tracking individual x and y coordinates, but it has some other nice features, like interpolate, which will find a point between two points from 0% to 100%, so for instance:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;color: #000000;">Point.<span style="color: #006600;">interpolate</span><span style="color: #66cc66;color: #000;">&#40;</span>a, b, .5<span style="color: #66cc66;color: #000;">&#41;</span>;</pre></div></div>

<p>will get you the midpoint, x and y between points a and b.  Instead of having to plug in the formula, which isn&#8217;t difficult <img src="http://sambaker.net/neattools/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_985_7047f9cc81c41af646a609ae7cba0741.png" style="vertical-align:-15px; display: inline-block ;" alt="(x1+x2)/2,(y1+y2)/2" title="(x1+x2)/2,(y1+y2)/2"/> but when you&#8217;ve got long expressions, long confusing expressions for each one, it adds up.<br />
I went from something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;color: #000000;">_line.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;color: #0000ff;">curveTo</span><span style="color: #66cc66;color: #000;">&#40;</span>m1.<span style="color: #006600;">x</span> + m1.<span style="color: #006600;">mod</span>.<span style="color: #0066CC;color: #0000ff;">width</span> + buffer, deltaY, <span style="color: #66cc66;color: #000;">&#40;</span><span style="color: #66cc66;color: #000;">&#40;</span><span style="color: #66cc66;color: #000;">&#40;</span>m1.<span style="color: #006600;">x</span> + m1.<span style="color: #006600;">mod</span>.<span style="color: #0066CC;color: #0000ff;">width</span> + buffer<span style="color: #66cc66;color: #000;">&#41;</span> - <span style="color: #66cc66;color: #000;">&#40;</span>m2.<span style="color: #006600;">x</span> -buffer<span style="color: #66cc66;color: #000;">&#41;</span><span style="color: #66cc66;color: #000;">&#41;</span> <span style="color: #66cc66;color: #000;">/</span> <span style="color: #cc66cc;color: #336699;">2</span><span style="color: #66cc66;color: #000;">&#41;</span> + m2.<span style="color: #006600;">x</span> -buffer,deltaY<span style="color: #66cc66;color: #000;">&#41;</span>;</pre></div></div>

<p>(You can&#8217;t see it but it&#8217;s shooting off the right side of the screen)<br />
to this:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;color: #000000;">_line.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;color: #0000ff;">curveTo</span><span style="color: #66cc66;color: #000;">&#40;</span>c.<span style="color: #006600;">x</span>, c.<span style="color: #006600;">y</span>, cd.<span style="color: #006600;">x</span>, cd.<span style="color: #006600;">y</span><span style="color: #66cc66;color: #000;">&#41;</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=138</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>773</title>
		<link>http://sambaker.net/neattools/?p=136</link>
		<comments>http://sambaker.net/neattools/?p=136#comments</comments>
		<pubDate>Fri, 13 Mar 2009 03:52:24 +0000</pubDate>
		<dc:creator>sambaker</dc:creator>
				<category><![CDATA[NeatTools]]></category>

		<guid isPermaLink="false">http://sambaker.net/neattools/?p=136</guid>
		<description><![CDATA[http://sourceforge.net/project/stats/rank_history.php?group_id=230996&#038;ugn=neattools
]]></description>
			<content:encoded><![CDATA[<p><a href="http://sourceforge.net/project/stats/rank_history.php?group_id=230996&#038;ugn=neattools">http://sourceforge.net/project/stats/rank_history.php?group_id=230996&#038;ugn=neattools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sambaker.net/neattools/?feed=rss2&amp;p=136</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
