<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Displaying specific items from an ArrayCollection in Flex</title>
	<link>http://blog.flexexamples.com/2008/05/10/displaying-specific-items-from-an-arraycollection-in-flex/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 05 Dec 2008 01:34:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/05/10/displaying-specific-items-from-an-arraycollection-in-flex/#comment-15185</link>
		<author>peterd</author>
		<pubDate>Wed, 03 Sep 2008 14:26:57 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/10/displaying-specific-items-from-an-arraycollection-in-flex/#comment-15185</guid>
		<description>Jon Henley,

You can try using the Array access syntax to specify the field name. Something like the following:
&lt;pre class="code"&gt;
&#60;mx:String id="str"&#62;score&#60;/mx:String&#62;
&#60;mx:Label text="{arrColl.getItemAt(slider.value)[str]}" /&#62;
&lt;/pre&gt;

Flex Builder may give you a warning saying &lt;em&gt;"Data binding will not be able to detect changes when using square bracket operator.  For Array, please use ArrayCollection.getItemAt() instead."&lt;/em&gt;, but you can probably ignore that.

Peter</description>
		<content:encoded><![CDATA[<p>Jon Henley,</p>
<p>You can try using the Array access syntax to specify the field name. Something like the following:</p>
<pre class="code">
&lt;mx:String id="str"&gt;score&lt;/mx:String&gt;
&lt;mx:Label text="{arrColl.getItemAt(slider.value)[str]}" /&gt;
</pre>
<p>Flex Builder may give you a warning saying <em>&#8220;Data binding will not be able to detect changes when using square bracket operator.  For Array, please use ArrayCollection.getItemAt() instead.&#8221;</em>, but you can probably ignore that.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Henley</title>
		<link>http://blog.flexexamples.com/2008/05/10/displaying-specific-items-from-an-arraycollection-in-flex/#comment-15150</link>
		<author>Jon Henley</author>
		<pubDate>Tue, 02 Sep 2008 16:05:00 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/10/displaying-specific-items-from-an-arraycollection-in-flex/#comment-15150</guid>
		<description>Hey

How would I use a string variable instead of the 'label' ... if that is dynamic?

is it possible with getItemAt?</description>
		<content:encoded><![CDATA[<p>Hey</p>
<p>How would I use a string variable instead of the &#8216;label&#8217; &#8230; if that is dynamic?</p>
<p>is it possible with getItemAt?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
