<?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: For-each-in loops in ActionScript 3</title>
	<atom:link href="http://www.barklund.org/blog/2009/05/21/for-each-in-loops-in-actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.barklund.org/blog/2009/05/21/for-each-in-loops-in-actionscript-3/</link>
	<description>work smarter when building current web trends</description>
	<lastBuildDate>Mon, 28 Jun 2010 17:41:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Greg</title>
		<link>http://www.barklund.org/blog/2009/05/21/for-each-in-loops-in-actionscript-3/comment-page-1/#comment-130154</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Thu, 24 Jun 2010 15:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.barklund.org/blog/?p=84#comment-130154</guid>
		<description>You can use dynamic typing in a for each in loop by setting your type to *. For example:

var arry:Array = [&quot;1&quot;, 2, &quot;3&quot;];

for each (var item:* in array)
{
   if (item is String)
   {
      trace(&quot;String value is: &quot; + item);
   }
   else if (item is Number)
   {
      trace(&quot;Number value is: &quot; + item);
   }
}

// returns
// String value is: 1
// Number value is: 2
// String value is: 3</description>
		<content:encoded><![CDATA[<p>You can use dynamic typing in a for each in loop by setting your type to *. For example:</p>
<p>var arry:Array = ["1", 2, "3"];</p>
<p>for each (var item:* in array)<br />
{<br />
   if (item is String)<br />
   {<br />
      trace(&#8220;String value is: &#8221; + item);<br />
   }<br />
   else if (item is Number)<br />
   {<br />
      trace(&#8220;Number value is: &#8221; + item);<br />
   }<br />
}</p>
<p>// returns<br />
// String value is: 1<br />
// Number value is: 2<br />
// String value is: 3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Semester 2 - Week 2: AS3 Properties, Methods and Events « Flash Uni</title>
		<link>http://www.barklund.org/blog/2009/05/21/for-each-in-loops-in-actionscript-3/comment-page-1/#comment-81381</link>
		<dc:creator>Semester 2 - Week 2: AS3 Properties, Methods and Events « Flash Uni</dc:creator>
		<pubDate>Tue, 04 Aug 2009 06:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.barklund.org/blog/?p=84#comment-81381</guid>
		<description>[...] http://www.barklund.org/blog/2009/05/21/for-each-in-loops-in-actionscript-3/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.barklund.org/blog/2009/05/21/for-each-in-loops-in-actionscript-3/" rel="nofollow">http://www.barklund.org/blog/2009/05/21/for-each-in-loops-in-actionscript-3/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Top 6 AS3 features you miss when switching back to AS2 &#124; Barklund.org</title>
		<link>http://www.barklund.org/blog/2009/05/21/for-each-in-loops-in-actionscript-3/comment-page-1/#comment-80476</link>
		<dc:creator>Top 6 AS3 features you miss when switching back to AS2 &#124; Barklund.org</dc:creator>
		<pubDate>Sun, 19 Jul 2009 21:41:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.barklund.org/blog/?p=84#comment-80476</guid>
		<description>[...] latter category includes e.g. the for-each-in construct, different number types, class introspection or built-in class look-up by string, but these are my [...]</description>
		<content:encoded><![CDATA[<p>[...] latter category includes e.g. the for-each-in construct, different number types, class introspection or built-in class look-up by string, but these are my [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
