<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Looping through an objects properties</title>
	<atom:link href="http://www.axelscript.com/2009/09/18/looping-through-an-objects-properties/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.axelscript.com/2009/09/18/looping-through-an-objects-properties/</link>
	<description>Axel Jensen on Flex, Coldfusion and... other stuff</description>
	<lastBuildDate>Tue, 06 Dec 2011 15:13:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Alida Mendez</title>
		<link>http://www.axelscript.com/2009/09/18/looping-through-an-objects-properties/comment-page-1/#comment-3366</link>
		<dc:creator>Alida Mendez</dc:creator>
		<pubDate>Wed, 19 Jan 2011 14:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/?p=366#comment-3366</guid>
		<description>Usually an excellent post next time i see this website along with other information sites you own. Recognize the value of your current skills.</description>
		<content:encoded><![CDATA[<p>Usually an excellent post next time i see this website along with other information sites you own. Recognize the value of your current skills.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ragona</title>
		<link>http://www.axelscript.com/2009/09/18/looping-through-an-objects-properties/comment-page-1/#comment-2416</link>
		<dc:creator>Ragona</dc:creator>
		<pubDate>Fri, 18 Sep 2009 18:25:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/?p=366#comment-2416</guid>
		<description>You can use a for..in loop to get the keys in either an Object or a Dictionary:

var myObject:Object = {foo: &#039;bar&#039;};

for(var item in myObject)
{
	trace(item); //traces &#039;foo&#039;
	trace(myObject[item]); //traces &#039;bar&#039;
}

var myDict:Dictionary = new Dictionary();

myDict[&#039;foo&#039;] = &#039;bar&#039;;

for(var dictItem in myDict)
{
	trace(dictItem); //traces &#039;foo&#039;
	trace(myDict[dictItem]); //traces &#039;bar&#039;
}</description>
		<content:encoded><![CDATA[<p>You can use a for..in loop to get the keys in either an Object or a Dictionary:</p>
<p>var myObject:Object = {foo: &#8216;bar&#8217;};</p>
<p>for(var item in myObject)<br />
{<br />
	trace(item); //traces &#8216;foo&#8217;<br />
	trace(myObject[item]); //traces &#8216;bar&#8217;<br />
}</p>
<p>var myDict:Dictionary = new Dictionary();</p>
<p>myDict['foo'] = &#8216;bar&#8217;;</p>
<p>for(var dictItem in myDict)<br />
{<br />
	trace(dictItem); //traces &#8216;foo&#8217;<br />
	trace(myDict[dictItem]); //traces &#8216;bar&#8217;<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

