<?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"
	>

<channel>
	<title>Henry Jones &#187; Articles</title>
	<atom:link href="http://henryjones.us/feed?cat=4" rel="self" type="application/rss+xml" />
	<link>http://henryjones.us</link>
	<description>Design. Development. Animation.</description>
	<pubDate>Sun, 30 Jan 2011 22:25:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Web Design Resources</title>
		<link>http://henryjones.us/articles/web-design-resources</link>
		<comments>http://henryjones.us/articles/web-design-resources#comments</comments>
		<pubDate>Sun, 16 Dec 2007 16:54:35 +0000</pubDate>
		<dc:creator>Henry</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://henryjones.us/uncategorized/web-design-resources</guid>
		<description><![CDATA[As a web designer, it is important to have resources that help you stay on top of the latest trends and technologies. Below is a list of sites that will help you do just that. 
You The Designer 


You The Designer is the ultimate resource for web designers. This blog provides a steady stream of [...]]]></description>
			<content:encoded><![CDATA[<p>As a web designer, it is important to have resources that help you stay on top of the latest trends and technologies. Below is a list of sites that will help you do just that. </p>
<h5>You The Designer </h5>
<p><a href='http://www.youthedesigner.com' target='_blank' ><img src='http://henryjones.us/wp-content/uploads/2008/05/you_the_designer.jpg' alt='you_the_designer.jpg' /></a></p>
<p>
<a href='http://www.youthedesigner.com' target='_blank'>You The Designer</a> is the ultimate resource for web designers. This blog provides a steady stream of helpful tips, free files, and design inspiration.
</p>
<h5>Your Design Forums</h5>
<p><a href='http://www.yourdesignforums.com' target='_blank' ><img src='http://henryjones.us/wp-content/uploads/2008/05/your_design_forums.jpg' alt='your_design_forums.jpg' /></a></p>
<p>
<a href='http://www.yourdesignforums.com' target='_blank'>Your Design Forums</a> is a great place to meet and network with fellow web designers. It is quickly becoming a great place to discuss graphic design related topics.
</p>
<h5>BittBox</h5>
<p><a href='http://bittbox.com' target='_blank' title='bittbox.jpg'><img src='http://henryjones.us/wp-content/uploads/2007/12/bittbox.jpg' alt='bittbox.jpg' /></a></p>
<p>
<a href='http://bittbox.com' target='_blank'>BittBox</a> has a ton of easy to follow Illustrator and Photoshop tutorials as well as free high-quality brushes, vector art, and fonts. The site has only been around for a year, but has quickly become one of the first stops of designers looking for helpful stuff.
</p>
<h5>Web Designer Wall</h5>
<p><a href='http://webdesignerwall.com' target='_blank' title='wdw.jpg'><img src='http://henryjones.us/wp-content/uploads/2007/12/wdw.jpg' alt='wdw.jpg' /></a></p>
<p>
<a href='http://webdesignerwall.com' target='_blank'>Web Designer Wall</a> is a great place to find tutorials and the occasional freebie. If you can&#8217;t find something useful in the content, the design of the site alone should be enough to inspire you.
</p>
<h5>Smashing Magazine</h5>
<p><a href='http://smashingmagazine.com' target='_blank' title='smash.jpg'><img src='http://henryjones.us/wp-content/uploads/2007/12/smash.jpg' alt='smash.jpg' /></a></p>
<p>
<a href='http://smashingmagazine.com' target='_blank'>Smashing Magazine</a> focuses on delivering quality over quantity, and they succeed in doing so. There are lots of good tutorials on the site, along with long compiled lists of other resources.
</p>
<h5>Tutorial Blog</h5>
<p><a href='http://tutorialblog.org' target='_blank' title='tutorial_blog.jpg'><img src='http://henryjones.us/wp-content/uploads/2007/12/tutorial_blog.jpg' alt='tutorial_blog.jpg' /></a></p>
<p>
<a href='http://tutorialblog.org' target='_blank'>Tutorial Blog</a> began as a Photoshop tutorial only site, but now they cover a wide range of web design related topics.
</p>
<h5>A List Apart</h5>
<p><a href='http://alistapart.com' target='_blank' title='a_list_apart.jpg'><img src='http://henryjones.us/wp-content/uploads/2007/12/a_list_apart.jpg' alt='a_list_apart.jpg' /></a></p>
<p>
<a href='http://alistapart.com' target='_blank'>A List Apart</a> has been around since 1998 with content focusing on web standards and usability. The professionalism and quality of articles of this online magazine might make it the best resource for web designers.
</p>
<h5>Digital Web Magazine</h5>
<p><a href='http://digital-web.com' target='_blank' title='digital_web.jpg'><img src='http://henryjones.us/wp-content/uploads/2007/12/digital_web.jpg' alt='digital_web.jpg' /></a></p>
<p>
<a href='http://digital-web.com' target='_blank'>Digital Web Magazine</a> is another site that has been around for a while. With over 390 articles and 218 contributors, there is a wealth of information for web designers to take in.</p>
]]></content:encoded>
			<wfw:commentRss>http://henryjones.us/articles/web-design-resources/feed</wfw:commentRss>
		</item>
		<item>
		<title>Free Design Elements: Worn Edges</title>
		<link>http://henryjones.us/articles/free-design-elements-worn-edges</link>
		<comments>http://henryjones.us/articles/free-design-elements-worn-edges#comments</comments>
		<pubDate>Sat, 01 Dec 2007 07:14:57 +0000</pubDate>
		<dc:creator>Henry</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://henryjones.us/uncategorized/free-design-elements-worn-edges</guid>
		<description><![CDATA[I have a folder on my computer where I keep various design elements from past projects. Recently, I took on the task of organizing this folder, and in doing so, I was reminded of what a valuable resource this is. So, I have decided to share this resource with you. Periodically, I will be posting [...]]]></description>
			<content:encoded><![CDATA[<p>I have a folder on my computer where I keep various design elements from past projects. Recently, I took on the task of organizing this folder, and in doing so, I was reminded of what a valuable resource this is. So, I have decided to share this resource with you. Periodically, I will be posting some of these design elements here for you to download and use.</p>
<p>The first of the Free Design Elements is a collection of worn edges in PNG format. These come in handy when creating a rustic or vintage design.</p>
<p><img src='http://henryjones.us/wp-content/uploads/2007/12/worn_edges_sample.jpg' alt='worn_edges_sample.jpg' /></p>
<p><a class="downloadLink" href='http://henryjones.us/wp-content/uploads/2007/12/worn_edges.zip' title='worn_edges.zip'>Download Worn Edges</a></p>
]]></content:encoded>
			<wfw:commentRss>http://henryjones.us/articles/free-design-elements-worn-edges/feed</wfw:commentRss>
		</item>
		<item>
		<title>ActionScript 3 Physics Engines</title>
		<link>http://henryjones.us/articles/actionscript-3-physics-engines</link>
		<comments>http://henryjones.us/articles/actionscript-3-physics-engines#comments</comments>
		<pubDate>Tue, 20 Nov 2007 17:11:46 +0000</pubDate>
		<dc:creator>Henry</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://henryjones.us/uncategorized/actionscript-3-physics-engines</guid>
		<description><![CDATA[When making a flash game, it&#8217;s always nice to have believable physics. However, having to code your own physics engine is not always so nice. The good news is&#8230;you don&#8217;t have to. Below is a list of AS3 class libraries that make simulating physics relatively easy.


The Fisix Engine
The documentation appears to be very thorough and [...]]]></description>
			<content:encoded><![CDATA[<p>When making a flash game, it&#8217;s always nice to have believable physics. However, having to code your own physics engine is not always so nice. The good news is&#8230;you don&#8217;t have to. Below is a list of AS3 class libraries that make simulating physics relatively easy.</p>
<ul id="blockList">
<li>
<p><img src="http://henryjones.us/wp-content/uploads/2007/11/fisix_1.jpg" alt="fisix_1.jpg"  /><strong>The Fisix Engine</strong><br />
The documentation appears to be very thorough and there seems to be a nice community being formed around this engine. The only drawback is that it can only be used in Flex.</p>
<p class="link"><a href="http://www.fisixengine.com/" class="featureLink" target="_blank">Visit the Site</a></p>
<div class="clear"></div>
</li>
<li>
<p><img src="http://henryjones.us/wp-content/uploads/2007/11/ape_1.jpg" alt="ape_1.jpg" /><strong>ActionScript Physics Engine</strong><br />
APE is written and maintained by <a href="http://cove.org" target="_blank">Alec Cove</a>, and can be used in Flash or Flex. I have actually had time to play around with this one, and can say that it is very easy to use. </p>
<p class="link"><a href="http://www.cove.org/ape/index.htm" class="featureLink" target="_blank">Visit the Site</a></p>
<div class="clear"></div>
</li>
<li>
<p><img src="http://henryjones.us/wp-content/uploads/2007/11/foam_1.jpg" alt="foam_1.jpg"  /><strong>FOAM</strong><br />
This engine trades efficiency for modularity and extensibility. Although there is no documentation, a  look through the well commented code should have you up and running in no time.</p>
<p class="link"><a href="http://blog.generalrelativity.org/?p=17" class="featureLink" target="_blank">Visit the Site</a></p>
<div class="clear"></div>
</li>
<li class="last">
<p><img src="http://henryjones.us/wp-content/uploads/2007/11/box_1.jpg" alt="box_1.jpg"  /><strong>Box2DFlashAS3</strong><br />
Box2DFlashAS3 is an open source port of Erin Catto&#8217;s powerful c++ physics library <a href="http://www.box2d.org/" target="_blank">Box2D</a>. Judging from the demos, this engine seems to be quite good.</p>
<p class="link"><a href="http://box2dflash.sourceforge.net/" class="featureLink" target="_blank">Visit the Site</a></p>
<div class="clear"></div>
</li>
</ul>
<p>With the increased performance of AS3 and Flash Player 9, I won&#8217;t be surprised to see a few more physics engines pop up in the coming months.</p>
]]></content:encoded>
			<wfw:commentRss>http://henryjones.us/articles/actionscript-3-physics-engines/feed</wfw:commentRss>
		</item>
		<item>
		<title>Using the AS3 Jpeg Encoder</title>
		<link>http://henryjones.us/articles/using-the-as3-jpeg-encoder</link>
		<comments>http://henryjones.us/articles/using-the-as3-jpeg-encoder#comments</comments>
		<pubDate>Fri, 02 Nov 2007 19:14:28 +0000</pubDate>
		<dc:creator>Henry</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://henryjones.us/uncategorized/using-the-as3-jpeg-encoder</guid>
		<description><![CDATA[Some amazing things can be done with images in ActionScript 3. One of these is the ability to encode a display object as a jpeg, and thanks to the JPEG Encoder included in the AS3 Core Library, doing this is actually quite simple. In this article, I will show you how to create a flash [...]]]></description>
			<content:encoded><![CDATA[<p>Some amazing things can be done with images in ActionScript 3. One of these is the ability to encode a display object as a jpeg, and thanks to the JPEG Encoder included in the AS3 Core Library, doing this is actually quite simple. In this article, I will show you how to create a flash file that encodes a movieclip as a jpeg and allows the user to download it to their own computer.</p>
<p>To give you an idea of how this can be used, try out the sketch pad below:</p>
<p class="center"> <script>writeFlash("http://henryjones.us/wp-content/themes/henry/swf/sketch.swf", 250, 250, "transparent");</script></p>
<h5>First Things First</h5>
<p>Before we get started, make sure to grab the <a href="http://code.google.com/p/as3corelib/" target="_blank">ActionScript 3 Core Library</a>. The Core Library contains several classes and utilities that make it easy to do things such as MD5 hashing, date formatting, and image encoding to name a few. Once you have the library, just drop it into your classes folder and you are ready to go. Now we can import the JPGEncoder.</p>
<pre><code>
import com.adobe.images.JPGEncoder;

</code></pre>
<h5>Encoding the MovieClip</h5>
<p>In this example, we are going to assume that our MovieClip of interest is named sketch_mc. In order to make use of the JPEGEncoder, our MovieClip needs to become a bitmap. To do this, we are going to use the BitmapData class. The  contructor for this class requires two arguments: width and height. Since we want our jpeg to be the same size as sketch_mc, we use it&#8217;s width and height properties. Then by using sketch_mc as an argument, the draw method draws our MovieClip on to the bitmap.</p>
<pre><code>
import com.adobe.images.JPGEncoder;

var jpgSource:BitmapData = new BitmapData (sketch_mc.width, sketch_mc.height);
jpgSource.draw(sketch_mc);

</code></pre>
<p>Now that sketch_mc is in bitmap form, we can use the JPGEncoder. When creating a new instance of this class, you can set the level of compression by passing in a number from 1 - 100. Then to create our jpeg, we call the encode method and use our BitmapData instance as the argument. The encode method returns the jpeg in the form of a ByteArray, which is simply an AS3 class that makes working with binary data a little easier.</p>
<pre><code>
import com.adobe.images.JPGEncoder;

var jpgSource:BitmapData = new BitmapData (sketch_mc.width, sketch_mc.height);
jpgSource.draw(sketch_mc);

var jpgEncoder:JPGEncoder = new JPGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);

</code></pre>
<h5>   From the Flash Player to the Hard Drive</h5>
<p>ActionScript 3 has done all the work neccessary to turn our MovieClip into a jpeg, but it needs a little help in making it available to download. To make this happen, we will need to post our ByteArray to a server side script using the URLRequest class. Since we are posting binary data, we must set the content-type to &#8220;application/octet-stream&#8221;. It is also important to note that the file being downloaded will need a name, so we pass that to our server side script as a query string.</p>
<pre><code>
import com.adobe.images.JPGEncoder;

var jpgSource:BitmapData = new BitmapData (sketch_mc.width, sketch_mc.height);
jpgSource.draw(sketch_mc);

var jpgEncoder:JPGEncoder = new JPGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);

var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream");
var jpgURLRequest:URLRequest = new URLRequest("jpg_encoder_download.php?name=sketch.jpg");
jpgURLRequest.requestHeaders.push(header);
jpgURLRequest.method = URLRequestMethod.POST;
jpgURLRequest.data = jpgStream;
navigateToURL(jpgURLRequest, "_blank");

</code></pre>
<p>Below is the php script to where we are posting our jpeg. I chose to use php for this example, but any server side script will do.</p>
<pre><code>
if (isset($GLOBALS["HTTP_RAW_POST_DATA"]))
{
	// get bytearray
	$jpg = $GLOBALS["HTTP_RAW_POST_DATA"];

	// add headers for download dialog-box
	header('Content-Type: image/jpeg');
	header("Content-Disposition: attachment; filename=".$_GET['name']);
	echo $jpg;
}

</code></pre>
<p>That&#8217;s it. It really doesn&#8217;t get much easier than that. Of course, to make your code more reusable, you probably want to wrap it in a function or create  a custom class.</p>
<p><a class="downloadLink" href='http://henryjones.us/wp-content/uploads/2007/11/jpeg_encoder.zip' title='jpeg_encoder.zip'>Download Sample Code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://henryjones.us/articles/using-the-as3-jpeg-encoder/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
