<?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: Displaying icons in a Spark List control in Flex 4</title>
	<atom:link href="http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 14:19:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: skyrick</title>
		<link>http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/comment-page-1/#comment-9092</link>
		<dc:creator>skyrick</dc:creator>
		<pubDate>Tue, 29 Mar 2011 16:50:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/#comment-9092</guid>
		<description>Hi,

You can tried to replace the rollOverColor or contentBgColor by a data.getStyle(&#039;color&#039;) and set a color in the spark List.

Regards,
Sky</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>You can tried to replace the rollOverColor or contentBgColor by a data.getStyle(&#8216;color&#8217;) and set a color in the spark List.</p>
<p>Regards,<br />
Sky</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahdi</title>
		<link>http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/comment-page-1/#comment-8796</link>
		<dc:creator>Mahdi</dc:creator>
		<pubDate>Tue, 04 Jan 2011 10:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/#comment-8796</guid>
		<description>The copy paste of your item rendered complains about  and flash builder an not show it in its auto-completion. Any suggestion?

Even commenting it will give errors on undefined rollOverColor, contentBackgroundColor and selectionColor, what is going on?!!</description>
		<content:encoded><![CDATA[<p>The copy paste of your item rendered complains about  and flash builder an not show it in its auto-completion. Any suggestion?</p>
<p>Even commenting it will give errors on undefined rollOverColor, contentBackgroundColor and selectionColor, what is going on?!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roohullah Afzali</title>
		<link>http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/comment-page-1/#comment-4735</link>
		<dc:creator>Roohullah Afzali</dc:creator>
		<pubDate>Sun, 26 Jul 2009 07:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/#comment-4735</guid>
		<description>.......
override public function set labelText(value:String):void
             {
                super.labelText = value;
                labelDisplay.text = labelText; 
            }

......
:)</description>
		<content:encoded><![CDATA[<p>&#8230;&#8230;.<br />
override public function set labelText(value:String):void<br />
             {<br />
                super.labelText = value;<br />
                labelDisplay.text = labelText;<br />
            }</p>
<p>&#8230;&#8230;<br />
:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rhobby</title>
		<link>http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/comment-page-1/#comment-4528</link>
		<dc:creator>Rhobby</dc:creator>
		<pubDate>Sun, 12 Jul 2009 11:42:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/#comment-4528</guid>
		<description>Yes, with Tim Staller say, it runs. I am under SDK 4.0.0.7573 
But why it became so difficult for a simple ItemRenderer? 
For a speed of execution faster? And why overriding the label? 
What returns to complicate such a simple itemrenderer to a list?

Thank you to those who want to point me to an explanation and where I can learn.</description>
		<content:encoded><![CDATA[<p>Yes, with Tim Staller say, it runs. I am under SDK 4.0.0.7573<br />
But why it became so difficult for a simple ItemRenderer?<br />
For a speed of execution faster? And why overriding the label?<br />
What returns to complicate such a simple itemrenderer to a list?</p>
<p>Thank you to those who want to point me to an explanation and where I can learn.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Statler</title>
		<link>http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/comment-page-1/#comment-4520</link>
		<dc:creator>Tim Statler</dc:creator>
		<pubDate>Sat, 11 Jul 2009 20:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/#comment-4520</guid>
		<description>Try posting the code again...

	
		
	</description>
		<content:encoded><![CDATA[<p>Try posting the code again&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Statler</title>
		<link>http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/comment-page-1/#comment-4519</link>
		<dc:creator>Tim Statler</dc:creator>
		<pubDate>Sat, 11 Jul 2009 20:15:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/#comment-4519</guid>
		<description>I was also getting the &#039;method must override...&#039; error. I guess the getter/setter names in ItemRenderer have changed from &#039;label&#039; to &#039;labelText&#039;. Here&#039;s the script block with the modifications I used to get the sample working:

&lt;code&gt;	

		
	
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I was also getting the &#8216;method must override&#8230;&#8217; error. I guess the getter/setter names in ItemRenderer have changed from &#8216;label&#8217; to &#8216;labelText&#8217;. Here&#8217;s the script block with the modifications I used to get the sample working:</p>
<p><code>	</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: travis</title>
		<link>http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/comment-page-1/#comment-4454</link>
		<dc:creator>travis</dc:creator>
		<pubDate>Sun, 05 Jul 2009 00:44:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/#comment-4454</guid>
		<description>Does anybody no how to return data from the itemrender for a spark list. say i had a checkbx in my itemrenderer how can I get that info back to my main component if its selected or not. I looked at datagrid and itemeditor but I really rather use a spark list. Thanks</description>
		<content:encoded><![CDATA[<p>Does anybody no how to return data from the itemrender for a spark list. say i had a checkbx in my itemrenderer how can I get that info back to my main component if its selected or not. I looked at datagrid and itemeditor but I really rather use a spark list. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/comment-page-1/#comment-4444</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Sun, 28 Jun 2009 17:04:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/#comment-4444</guid>
		<description>Andy,

A lot of stuff has changed since the beta build. Download the latest Flex 4 Nightly build and try again.

If it &lt;em&gt;still&lt;/em&gt; gives an error in the latest build, let me know and maybe the API has changes since I did this example.

Peter</description>
		<content:encoded><![CDATA[<p>Andy,</p>
<p>A lot of stuff has changed since the beta build. Download the latest Flex 4 Nightly build and try again.</p>
<p>If it <em>still</em> gives an error in the latest build, let me know and maybe the API has changes since I did this example.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/comment-page-1/#comment-4443</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Sun, 28 Jun 2009 13:19:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/#comment-4443</guid>
		<description>Hi, copied and pasted code but compiler is grumbilng that there is no set label method to override in ItemRenderer - i.e. 1020: Method marked override must override another method.

I&#039;m using the beta standalone - not sure whether the class has changed in the nightly builds or whether perhaps there is a code error here?</description>
		<content:encoded><![CDATA[<p>Hi, copied and pasted code but compiler is grumbilng that there is no set label method to override in ItemRenderer &#8211; i.e. 1020: Method marked override must override another method.</p>
<p>I&#8217;m using the beta standalone &#8211; not sure whether the class has changed in the nightly builds or whether perhaps there is a code error here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/comment-page-1/#comment-4452</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Fri, 26 Jun 2009 04:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/06/24/displaying-icons-in-a-spark-list-control-in-flex-4/#comment-4452</guid>
		<description>Doron Katz,

You can refer to the Flex 4 beta documentation at http://livedocs.adobe.com/flex/gumbo/langref/spark/ and look at the Skin States section, or you can look in the default Spark skins.

For example, for the Spark Button control, go to the following URL:
&lt;a href=&quot;http://livedocs.adobe.com/flex/gumbo/langref/spark/components/Button.html#SkinStateSummary&quot; rel=&quot;nofollow&quot;&gt;&lt;u&gt;http://livedocs.adobe.com/flex/gumbo/langref/spark/components/Button.html#SkinStateSummary&lt;/u&gt;&lt;/a&gt;
If the skin states table is not visible, click the &quot;Show Inherited Skin States&quot; link to see the inherited skin states. You should see the four states as: &quot;up&quot;, &quot;over&quot;, &quot;down&quot;, and &quot;disabled&quot;.

The other option is to look in the Spark skin itself. Personally, when creating a custom Spark skin I usually start  by copying the default Spark skin and making modifications. For example, for the default Spark Button control skin, go to the following path in your Flex SDK: &lt;&lt;em&gt;&lt;nobr&gt;Flex SDK&lt;/nobr&gt;&lt;/em&gt;&gt;\frameworks\projects\flex4\src\spark\skins\spark\ButtonSkin.mxml.
You should see the following states defined in the MXML code:
&lt;pre class=&quot;code&quot;&gt;
&lt;!-- states --&gt;
&lt;s:states&gt;
    &lt;s:State name=&quot;up&quot; /&gt;
    &lt;s:State name=&quot;over&quot; /&gt;
    &lt;s:State name=&quot;down&quot; /&gt;
    &lt;s:State name=&quot;disabled&quot; /&gt;
&lt;/s:states&gt;
&lt;/pre&gt;

Also, I should mention that the Flex 4 SDK Downloads page now includes nightly versions of the Flex 4 Language Reference. To download the latest Flex 4 SDK and the latest Flex 4 Language Reference, go to &lt;a href=&quot;http://opensource.adobe.com/wiki/display/flexsdk/Download%2bFlex%2b4&quot; rel=&quot;nofollow&quot;&gt;&lt;u&gt;http://opensource.adobe.com/wiki/display/flexsdk/Download%2bFlex%2b4&lt;/u&gt;&lt;/a&gt;.

Hope that helps,
Peter</description>
		<content:encoded><![CDATA[<p>Doron Katz,</p>
<p>You can refer to the Flex 4 beta documentation at <a href="http://livedocs.adobe.com/flex/gumbo/langref/spark/" rel="nofollow">http://livedocs.adobe.com/flex/gumbo/langref/spark/</a> and look at the Skin States section, or you can look in the default Spark skins.</p>
<p>For example, for the Spark Button control, go to the following URL:<br />
<a href="http://livedocs.adobe.com/flex/gumbo/langref/spark/components/Button.html#SkinStateSummary" rel="nofollow"><u><a href="http://livedocs.adobe.com/flex/gumbo/langref/spark/components/Button.html#SkinStateSummary" rel="nofollow">http://livedocs.adobe.com/flex/gumbo/langref/spark/components/Button.html#SkinStateSummary</a></u></a><br />
If the skin states table is not visible, click the &#8220;Show Inherited Skin States&#8221; link to see the inherited skin states. You should see the four states as: &#8220;up&#8221;, &#8220;over&#8221;, &#8220;down&#8221;, and &#8220;disabled&#8221;.</p>
<p>The other option is to look in the Spark skin itself. Personally, when creating a custom Spark skin I usually start  by copying the default Spark skin and making modifications. For example, for the default Spark Button control skin, go to the following path in your Flex SDK: &lt;<em><nobr>Flex SDK</nobr></em>&gt;\frameworks\projects\flex4\src\spark\skins\spark\ButtonSkin.mxml.<br />
You should see the following states defined in the MXML code:</p>
<pre class="code">
&lt;!-- states --&gt;
&lt;s:states&gt;
    &lt;s:State name="up" /&gt;
    &lt;s:State name="over" /&gt;
    &lt;s:State name="down" /&gt;
    &lt;s:State name="disabled" /&gt;
&lt;/s:states&gt;
</pre>
<p>Also, I should mention that the Flex 4 SDK Downloads page now includes nightly versions of the Flex 4 Language Reference. To download the latest Flex 4 SDK and the latest Flex 4 Language Reference, go to <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download%2bFlex%2b4" rel="nofollow"><u><a href="http://opensource.adobe.com/wiki/display/flexsdk/Download%2bFlex%2b4" rel="nofollow">http://opensource.adobe.com/wiki/display/flexsdk/Download%2bFlex%2b4</a></u></a>.</p>
<p>Hope that helps,<br />
Peter</p>
]]></content:encoded>
	</item>
</channel>
</rss>

