<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: AS3 Data Structures For Game Developers (and more)</title>
	<atom:link href="http://www.as3dp.com/2007/06/10/as3-data-structures-for-game-developers-and-more/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.as3dp.com/2007/06/10/as3-data-structures-for-game-developers-and-more/</link>
	<description>OOP for Flash, Flex and AIR</description>
	<pubDate>Mon, 08 Sep 2008 14:45:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Mike</title>
		<link>http://www.as3dp.com/2007/06/10/as3-data-structures-for-game-developers-and-more/#comment-624</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 31 May 2008 21:08:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/2007/06/10/as3-data-structures-for-game-developers-and-more/#comment-624</guid>
		<description>I have found in Flash CS3 that the 'object as hash table' does not work for keys that contain "&#38;" "&#60;" or "\"". Haven't figured why yet, but it leads to some very weird behavior in my (limited) testing.</description>
		<content:encoded><![CDATA[<p>I have found in Flash CS3 that the &#8216;object as hash table&#8217; does not work for keys that contain &#8220;&amp;&#8221; &#8220;&lt;&#8221; or &#8220;\&#8221;". Haven&#8217;t figured why yet, but it leads to some very weird behavior in my (limited) testing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Wright</title>
		<link>http://www.as3dp.com/2007/06/10/as3-data-structures-for-game-developers-and-more/#comment-467</link>
		<dc:creator>Jacob Wright</dc:creator>
		<pubDate>Wed, 30 Jan 2008 19:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/2007/06/10/as3-data-structures-for-game-developers-and-more/#comment-467</guid>
		<description>In AS 3 an Object is a Hash Table. The only difference if you get technical is the API. myHash.get("key") vs myObj["key"].

The difference in using an Object over an Array is the Array IS an Object, but with a load of methods for working with numerically indexed data. If all you need is a hash the Object is much lighter than the Array. It could also be confusing for someone (another developer) to see an array, iterate through it with a for (i = 0; i &#60; length; i++) loop and get nothing out.

In short, it's for the same reason why you'd use a Shape over a Sprite if you're just drawing and a Sprite over a MovieClip if you don't need to use the timeline.</description>
		<content:encoded><![CDATA[<p>In AS 3 an Object is a Hash Table. The only difference if you get technical is the API. myHash.get(&#8221;key&#8221;) vs myObj["key"].</p>
<p>The difference in using an Object over an Array is the Array IS an Object, but with a load of methods for working with numerically indexed data. If all you need is a hash the Object is much lighter than the Array. It could also be confusing for someone (another developer) to see an array, iterate through it with a for (i = 0; i &lt; length; i++) loop and get nothing out.</p>
<p>In short, it&#8217;s for the same reason why you&#8217;d use a Shape over a Sprite if you&#8217;re just drawing and a Sprite over a MovieClip if you don&#8217;t need to use the timeline.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RJE</title>
		<link>http://www.as3dp.com/2007/06/10/as3-data-structures-for-game-developers-and-more/#comment-32</link>
		<dc:creator>RJE</dc:creator>
		<pubDate>Fri, 22 Jun 2007 09:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/2007/06/10/as3-data-structures-for-game-developers-and-more/#comment-32</guid>
		<description>Associative Arrays is just the general name for key/value data structures.  There are many different ways to implement this with various tradeoffs.  A Hash table is one of these implementations.</description>
		<content:encoded><![CDATA[<p>Associative Arrays is just the general name for key/value data structures.  There are many different ways to implement this with various tradeoffs.  A Hash table is one of these implementations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Sanders</title>
		<link>http://www.as3dp.com/2007/06/10/as3-data-structures-for-game-developers-and-more/#comment-31</link>
		<dc:creator>Bill Sanders</dc:creator>
		<pubDate>Wed, 20 Jun 2007 13:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/2007/06/10/as3-data-structures-for-game-developers-and-more/#comment-31</guid>
		<description>Hash tables come up a lot in DP examples from languages other than AS 3.0. The docs say that associative arrays, created using the Object class and not the Array class, can be used instead of hash tables. Does anyone know the difference between associative arrays and hash tables?</description>
		<content:encoded><![CDATA[<p>Hash tables come up a lot in DP examples from languages other than AS 3.0. The docs say that associative arrays, created using the Object class and not the Array class, can be used instead of hash tables. Does anyone know the difference between associative arrays and hash tables?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
