<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>nathandemick.com &#187; programming</title>
	<atom:link href="http://nathandemick.com/tags/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://nathandemick.com</link>
	<description></description>
	<lastBuildDate>Wed, 14 Dec 2011 22:40:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Nonogram Madness is effectively done</title>
		<link>http://nathandemick.com/2010/01/nonogram-madness-is-effectively-done/</link>
		<comments>http://nathandemick.com/2010/01/nonogram-madness-is-effectively-done/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 01:13:48 +0000</pubDate>
		<dc:creator>Nathan</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Video Games]]></category>

		<guid isPermaLink="false">http://nathandemick.com/?p=308</guid>
		<description><![CDATA[Seems like the last two projects I&#8217;ve done have had kind of lackluster ends. I&#8217;ve been sitting on this &#8220;mostly complete&#8221; project for a while, and while I&#8217;m still unsatisfied about certain areas (i.e. there&#8217;s no music), if I don&#8217;t push it out the door pretty soon it&#8217;ll just sit and stagnate. So, here we [...]]]></description>
			<content:encoded><![CDATA[<p>Seems like the last two projects I&#8217;ve done have had kind of lackluster ends. I&#8217;ve been sitting on this &#8220;mostly complete&#8221; project for a while, and while I&#8217;m still unsatisfied about certain areas (i.e. there&#8217;s no music), if I don&#8217;t push it out the door pretty soon it&#8217;ll just sit and stagnate. So, here we go: <a href="http://nathandemick.com/flash/nonogram-madness/" title="Nonogram Madness">Nonogram Madness</a>.</p>
<p>(If anyone cares, let me know what you think in the comments. The puzzles <em>kinda</em> progress in difficulty, but they haven&#8217;t been balanced at all, and some of them are pretty bad. There, you&#8217;ve been warned.)</p>
]]></content:encoded>
			<wfw:commentRss>http://nathandemick.com/2010/01/nonogram-madness-is-effectively-done/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Nonogram Madness title screen</title>
		<link>http://nathandemick.com/2009/10/nonogram-madness-title-screen/</link>
		<comments>http://nathandemick.com/2009/10/nonogram-madness-title-screen/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 19:04:03 +0000</pubDate>
		<dc:creator>Nathan</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Video Games]]></category>

		<guid isPermaLink="false">http://nathandemick.com/?p=292</guid>
		<description><![CDATA[The &#8220;in progress&#8221; title screen of Nonogram Madness. Yeah, I decided on a name.]]></description>
			<content:encoded><![CDATA[<p><a href="http://nathandemick.com/wp-content/uploads/2009/10/nonogram-screenshot-2.png"><img src="http://nathandemick.com/wp-content/uploads/2009/10/nonogram-screenshot-2.png" alt="Nonogram Madness" width="455" height="477" class="size-full wp-image-293" /></a></p>
<p>The &#8220;in progress&#8221; title screen of Nonogram Madness. Yeah, I decided on a name.</p>
]]></content:encoded>
			<wfw:commentRss>http://nathandemick.com/2009/10/nonogram-madness-title-screen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Game Makin&#8217;: nonograms?</title>
		<link>http://nathandemick.com/2009/09/game-makin-nonograms/</link>
		<comments>http://nathandemick.com/2009/09/game-makin-nonograms/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 14:19:53 +0000</pubDate>
		<dc:creator>Nathan</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[nonograms]]></category>

		<guid isPermaLink="false">http://nathandemick.com/?p=284</guid>
		<description><![CDATA[Makin&#8217; another game! It&#8217;s a nonogram game, inspired by Mario&#8217;s Picross (read more details about the whole genre at Game Set Watch). Admittedly, nonograms aren&#8217;t for everyone. I enjoy them, however, because they&#8217;re simple logic puzzles that have a visual component&#8230; they&#8217;re more interesting to me than the straight-up numbers of sudoku. When I explained [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://nathandemick.com/wp-content/uploads/2009/09/nonogram-screenshot-1.png" alt="Nonogram game screenshot #1" width="455" height="477" class="alignnone size-full wp-image-283" /></p>
<p>Makin&#8217; another game! It&#8217;s a <a href="http://en.wikipedia.org/wiki/Nonogram" title="Nonograms">nonogram</a> game, inspired by Mario&#8217;s Picross (read more details about the whole genre at <a href="http://www.gamesetwatch.com/2006/12/column_beyond_tetrismarios_pic.php">Game Set Watch</a>).</p>
<p>Admittedly, nonograms aren&#8217;t for everyone. I enjoy them, however, because they&#8217;re simple logic puzzles that have a visual component&#8230; they&#8217;re more interesting to me than the straight-up numbers of sudoku. When I explained the concept to Chandra, she seemed interested! It&#8217;s my goal to make something that she&#8217;ll play through =]</p>
]]></content:encoded>
			<wfw:commentRss>http://nathandemick.com/2009/09/game-makin-nonograms/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>wonderfl</title>
		<link>http://nathandemick.com/2009/04/wonderfl/</link>
		<comments>http://nathandemick.com/2009/04/wonderfl/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 18:28:57 +0000</pubDate>
		<dc:creator>Nathan</dc:creator>
				<category><![CDATA[japan]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[social networking]]></category>

		<guid isPermaLink="false">http://www.bitter-gamer.com/?p=249</guid>
		<description><![CDATA[This isn&#8217;t exactly news, but I created an account on the Japanese social network/code sharing site Wonderfl. It&#8217;s kind of cool&#8230; you can use the site to automatically compile Actionscript 3 code, then save it for other people to check out. If you see some code you like, or that sparks a new idea, you [...]]]></description>
			<content:encoded><![CDATA[<p>This isn&#8217;t exactly news, but I <a href="http://wonderfl.kayac.com/user/butr0s" title="created an account">created an account</a> on the Japanese social network/code sharing site <a href="http://wonderfl.kayac.com/" title="Wonderfl">Wonderfl</a>. It&#8217;s kind of cool&#8230; you can use the site to automatically compile Actionscript 3 code, then save it for other people to check out. If you see some code you like, or that sparks a new idea, you can &#8220;fork&#8221; it &mdash; copy it and save your own version. I was kind of surprised&#8230; I added two small demos on Monday, and by Wednesday some other users had already modified my demos. There&#8217;s a lot of random crap, but you can also learn some cool techniques by browsing through the user-submitted code. If you have any interest in Actionscript, you should check it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://nathandemick.com/2009/04/wonderfl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add an Event Listener in Actionscript 3</title>
		<link>http://nathandemick.com/2009/02/add-an-event-listener-in-actionscript-3/</link>
		<comments>http://nathandemick.com/2009/02/add-an-event-listener-in-actionscript-3/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 19:32:48 +0000</pubDate>
		<dc:creator>Nathan</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.bitter-gamer.com/?p=218</guid>
		<description><![CDATA[Importing graphics into your Flash program is all well and good. You can create movies or animation, but the real interesting thing is taking user input and having your program react to it. The way to do that in Actionscript is to add &#8220;Event Listeners&#8221; to objects you create. Whenever an event occurs (such as [...]]]></description>
			<content:encoded><![CDATA[<p>Importing graphics into your Flash program is all well and good. You can create movies or animation, but the real interesting thing is taking user input and having your program react to it. The way to do that in Actionscript is to add &#8220;Event Listeners&#8221; to objects you create. Whenever an event occurs (such as a keypress, mouse movement, or whatever), your Event Listener checks to see if it&#8217;s supposed to do anything. If so, then it runs a function with code that you specify. So for example, say the user presses the &#8220;left arrow&#8221; key. Your keyboard input event handler sees this, and runs appropriate code (in this case, it might move a game character left). </p>
<p>One of the most basic events in Actionscript is the &#8220;enter frame&#8221; event. This triggers every time the SWF is redrawn, and basically corresponds to the SWF frame rate. In the following example, we&#8217;re going to create a new class, and add an &#8220;enter frame&#8221; event listener to it, so that whenever a new instance of that class is created, a function will run at frame rate. </p>
<pre class="brush:js">
package {
  import flash.display.Sprite;
  import flash.events.Event;  // Required to add event listeners

  // Set our SWF framerate, width, height, and background color
  [SWF(frameRate='30', width='640', height='480', backgroundColor='0xffffff')]

  public class EventListenerExample extends Sprite {

    [Embed(source="ball.svg")]
    public var BallGraphic:Class;

      // Variables used to store movement data
      private var dx:int = 5;
      private var dy:int = 5;

    public function EventListenerExample():void
    {
      // Create instance of imported graphic
      var b:Sprite = new BallGraphic();

      // Add to this display object
      this.addChild(b);

      // Attach event listener
      // Listen for "ENTER_FRAME" event
      // Run the "enterFrame" function
      this.addEventListener(Event.ENTER_FRAME, enterFrame);
    }

	public function enterFrame(e:Event):void
	{
	  // Increment position
	  this.x += this.dx;
	  this.y += this.dy;

	  // If object passes beyond SWF boundaries,
	  // reverse direction
	  if(this.x &gt;= 640 - this.width || this.x &lt;= 0)
	    this.dx *= -1;
	  if(this.y &gt;= 480 - this.height || this.y &lt;= 0)
	    this.dy *= -1;
	}
  }
}
</pre>
<p>Save this code in a file named &#8216;EventListenerExample.as&#8217;. You can see that we&#8217;ve elaborated a bit on our last example, importing and displaying an SVG graphic. However, this time we add some variables to the class that represent speed (delta-x and delta-y). We attach the event listener by calling <code>this.addEventListener (Event.ENTER_FRAME, enterFrame);</code>. The first argument is the type of event the listener is triggered by, and the second is the name of the function to run when the event is detected. </p>
<p>In the declaration of the &#8216;enterFrame&#8217; function, we pass it details of the event that triggered it by putting <code>e:Event</code> in the arguments list. The function doesn&#8217;t actually use that information, but simply moves our graphic around, bouncing off the &#8220;walls&#8221; of the SWF. Movement is just one possible application of the &#8216;enter frame&#8217; event; collision detection can also be calculated this way, among other things.</p>
]]></content:encoded>
			<wfw:commentRss>http://nathandemick.com/2009/02/add-an-event-listener-in-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to embed SVG vector graphics with Actionscript</title>
		<link>http://nathandemick.com/2009/02/how-to-embed-svg-vector-graphics-with-actionscript/</link>
		<comments>http://nathandemick.com/2009/02/how-to-embed-svg-vector-graphics-with-actionscript/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 18:39:49 +0000</pubDate>
		<dc:creator>Nathan</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.bitter-gamer.com/?p=207</guid>
		<description><![CDATA[One of the big downsides about not using the Flash IDE for development is that it&#8217;s much more of a hassle to bring graphics into your program. The IDE has a built in vector illustration program, which allows the user to create graphical objects (or import them from Illustrator) and link them right up to [...]]]></description>
			<content:encoded><![CDATA[<p>One of the big downsides about not using the Flash IDE for development is that it&#8217;s much more of a hassle to bring graphics into your program. The IDE has a built in vector illustration program, which allows the user to create graphical objects (or import them from Illustrator) and link them right up to a corresponding Actionscript object. If you&#8217;re making programs with the Flex SDK, however, getting graphics is a bit more of a chore. Fortunately, it&#8217;s not nearly as difficult as programming graphics via Actionscript. </p>
<p><a href="/wp-content/uploads/2009/02/inkscape-1.png"><img src="http://www.bitter-gamer.com/wp-content/uploads/2009/02/inkscape-1-123x150.png" alt="Inkscape &#39;New&#39; File Menu" width="123" height="150" class="alignleft size-thumbnail wp-image-211" /></a>First, you&#8217;ll want to get a vector illustration program. Adobe makes Illustrator, which might be your first thought, but we&#8217;re trying to do things on the cheap here, otherwise we&#8217;d just get the Flash IDE. <a href="http://www.inkscape.org/download/?lang=en" title="Inkscape">Inkscape</a> is a free program which can save files in the <a href="http://en.wikipedia.org/wiki/Scalable_Vector_Graphics" title="SVG (scalable vector graphics)">SVG (scalable vector graphics)</a> format. Grab a copy of Inkscape, and fire it up (OS X users prior to 10.5 will need to <a href="http://www.apple.com/downloads/macosx/apple/macosx_updates/x11formacosx.html" title="install X11">install X11</a>). </p>
<p><a href="/wp-content/uploads/2009/02/inkscape-2.png"><img src="http://www.bitter-gamer.com/wp-content/uploads/2009/02/inkscape-2-132x150.png" alt="Create a circle in Inkscape" width="132" height="150" class="alignright size-thumbnail wp-image-212" /></a></p>
<p>Inkscape starts up by creating a default document, which is much larger than anything we would normally use. From the &#8216;File&#8217; menu, navigate to the &#8216;New 32&#215;32 Icon&#8217; option. Now, in the smaller image, use the &#8216;Circle&#8217; tool to create a circle. Take some time here to play around with Inkscape: experiment with changing the color of the circle, give it a border, do whatever you like. When you&#8217;re satisfied with what you have, click &#8216;Save&#8217; and save the image as a &#8216;Plain SVG.&#8217; Now, create a new Actionscript file in the same directory as the graphic file called &#8216;SVGExample.as&#8217;, and enter the following code:</p>
<pre class="brush:js">
package {
  import flash.display.Sprite;

  public class SVGExample extends Sprite {

    [Embed(source="ball.svg")]
    public var BallGraphic:Class;

    public function SVGExample():void
    {
       var b:Sprite = new BallGraphic();
       b.x = 100;
       b.y = 100;
       addChild(b);
    }
  }
}
</pre>
<p>The way that graphics are embedded is as follows: first, you use the &#8216;Embed&#8217; syntax to specify where the image is, and then you link that embedded asset to a unique class name. Here, I call it &#8220;BallGraphic,&#8221; but you can use anything that makes sense to you. Creating an instance of that class (when I call <code>new BallGraphic()</code>) loads the graphic, and it can then be added to a display object container and shown on the screen. When you compile this code and run the SWF, you should see your graphic on the stage. You can now easily import SVG graphics (or even other image types, such as .gif/.jpg) via Actionscript.</p>
]]></content:encoded>
			<wfw:commentRss>http://nathandemick.com/2009/02/how-to-embed-svg-vector-graphics-with-actionscript/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>More progress</title>
		<link>http://nathandemick.com/2008/12/more-progress/</link>
		<comments>http://nathandemick.com/2008/12/more-progress/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 13:40:08 +0000</pubDate>
		<dc:creator>Nathan</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.bitter-gamer.com/?p=166</guid>
		<description><![CDATA[What with Thanksgiving and having to teach my Bible study last week, I haven&#8217;t had a whole lot of time for programming recently. Couple that with the fact that I&#8217;m psuedo-sick again, and it&#8217;s hard times for Actionscript. I needed some inspiration this past weekend, which I got in the form of browsing around some [...]]]></description>
			<content:encoded><![CDATA[<p>What with Thanksgiving and having to teach my Bible study last week, I haven&#8217;t had a whole lot of time for programming recently. Couple that with the fact that I&#8217;m psuedo-sick again, and it&#8217;s hard times for Actionscript. I needed some inspiration this past weekend, which I got in the form of browsing around some <a title="Ifinite Ammo" href="http://www.infiniteammo.ca">stuff</a> the indie community is doing. Also, by firing up my <a title="Aquaria" href="http://www.bit-blot.com/aquaria/">Aquaria</a> demo (which I never finished).</p>
<p>Anyway, check out the <a href="http://www.bitter-gamer.com/files/Game-120708.swf">most recent build</a>. I got some simple &#8220;alien&#8221; type guys moving around in there, and am experimenting with a background. I&#8217;d like to try making the background move in relation to the ship, but I&#8217;m not sure how the effect will turn out. Guess we&#8217;ll see!</p>
]]></content:encoded>
			<wfw:commentRss>http://nathandemick.com/2008/12/more-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vector vs. bitmap graphics in Flash</title>
		<link>http://nathandemick.com/2008/11/vector-vs-bitmap-graphics-in-flash/</link>
		<comments>http://nathandemick.com/2008/11/vector-vs-bitmap-graphics-in-flash/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 13:52:10 +0000</pubDate>
		<dc:creator>Nathan</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[vector graphics]]></category>

		<guid isPermaLink="false">http://www.bitter-gamer.com/?p=162</guid>
		<description><![CDATA[So, although Flash/Actionscript has super easy ways to scale and rotate a graphical object, when I loaded up a PNG for my spaceship and tried rotating it, it looked pretty ugly. Of course, I didn&#8217;t expect OpenGL-quality scaling and rotation, but I was surprised at how bad it looked. I soon learned that while you [...]]]></description>
			<content:encoded><![CDATA[<p>So, although Flash/Actionscript has super easy ways to scale and rotate a graphical object, when I loaded up a PNG for my spaceship and tried rotating it, it looked pretty ugly. Of course, I didn&#8217;t expect OpenGL-quality scaling and rotation, but I was surprised at how bad it looked. I soon learned that while you can easily import bitmap graphics into Flash (i.e. GIF, JPG, PNG) they don&#8217;t keep their quality if you scale or rotate them. In order to do that, you need to use vector graphics. The gist of vector vs. bitmap graphics is that bitmaps are based on pixels, which do not scale very well, while vector graphics are based on mathematical equations that can be scaled based on screen/size requirements.</p>
<p>One benefit of the Flash IDE is that you can easily create vector graphics and use them in your movie/program. In my initial research, it wasn&#8217;t immediately apparent if you could create vector graphics in another program and then import to Flash. Of course, you can do it with Adobe Illustrator, but how about some other (free) program? </p>
<p>Turns out that you can. <a href="http://www.inkscape.org/" title="Inkscape">Inkscape</a> is a free vector graphics editor, which can output SVG file format images that can be directly imported via Actionscript into your Flash program. Pretty great! One of my goals for today is to learn the basics of a vector graphics editor&#8230; I&#8217;m fairly familiar with programs like Photoship/GIMP, but Inkscape seems to have some different paradigms that I&#8217;ll have to pick up.</p>
]]></content:encoded>
			<wfw:commentRss>http://nathandemick.com/2008/11/vector-vs-bitmap-graphics-in-flash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Progressive enhancement</title>
		<link>http://nathandemick.com/2008/11/progressive-enhancement/</link>
		<comments>http://nathandemick.com/2008/11/progressive-enhancement/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 13:19:11 +0000</pubDate>
		<dc:creator>Nathan</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.bitter-gamer.com/?p=144</guid>
		<description><![CDATA[Weekend progress Obviously, getting from displaying a keyboard-controlled object to a more &#8220;game-like&#8221; state is pretty easy. Here I&#8217;ve loaded an external PNG (that represents a spaceship of some kind) and attached it to a &#8220;ship&#8221; class instance. The left/right arrow keys control the object&#8217;s internal &#8220;rotation&#8221; value, and pressing the up arrow key moves [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bitter-gamer.com/files/Game.swf" title="Moving ship">Weekend progress</a></p>
<p>Obviously, getting from displaying a keyboard-controlled object to a more &#8220;game-like&#8221; state is pretty easy. Here I&#8217;ve loaded an external PNG (that represents a spaceship of some kind) and attached it to a &#8220;ship&#8221; class instance. The left/right arrow keys control the object&#8217;s internal &#8220;rotation&#8221; value, and pressing the up arrow key moves the ship. The direction is determined by trigonometry functions; the movement vector along the x-axis is cos(ship.rotation) and the y-axis movement vector is sin(ship.rotation). (For example, if our ship is pointing straight up (90&deg;), cos(90)=0 and sin(90)=1, so it&#8217;ll move straight up.)</p>
]]></content:encoded>
			<wfw:commentRss>http://nathandemick.com/2008/11/progressive-enhancement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First Actionscript example</title>
		<link>http://nathandemick.com/2008/11/first-actionscript-example/</link>
		<comments>http://nathandemick.com/2008/11/first-actionscript-example/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 14:38:10 +0000</pubDate>
		<dc:creator>Nathan</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.bitter-gamer.com/?p=138</guid>
		<description><![CDATA[First Actionscript example So here&#8217;s the first real result of my toying Actionscript. If you&#8217;ll notice, the last post where I actually first downloaded the Flex 3 SDK was two months ago. It didn&#8217;t take me two months to do this, but rather took me that long to figure out when I could fit in [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.bitter-gamer.com/wp-content/uploads/2008/11/game.swf'>First Actionscript example</a></p>
<p>So here&#8217;s the first real result of my toying Actionscript. If you&#8217;ll notice, the last post where I actually first downloaded the Flex 3 SDK was two months ago. It didn&#8217;t take me two months to do this, but rather took me that long to figure out when I could fit in extra programming time. The past two weeks I&#8217;ve started waking up super early, in order to study Actionscript before work. Anyway, I digress. This SWF was created with multiple classes, including a keyboard handler, main program class, and &#8220;entity&#8221; class (which in this case displays a blue box). Slowly figuring stuff out, like how to import graphics and associate them with an object, as well as event handling. Once the language-specific stuff gets figured out, things get easier because you know how to implement abstract algorithms/ideas. (Ah, just to reduce any potential confusion, you have to click the SWF in order to set focus, since it&#8217;s not embedded in the page. Apparently WordPress doesn&#8217;t like to embed SWFs&#8230;)</p>
]]></content:encoded>
			<wfw:commentRss>http://nathandemick.com/2008/11/first-actionscript-example/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

