<?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: Flash CS3 fl.controls.TileList allow no selection</title>
	<atom:link href="http://blog.vizio360.co.uk/2009/08/flash-cs3-fl-controls-tilelist-allow-no-selection/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vizio360.co.uk/2009/08/flash-cs3-fl-controls-tilelist-allow-no-selection/</link>
	<description>Software Development - Flash - AS3 - Agile</description>
	<lastBuildDate>Sat, 05 Nov 2011 20:30:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: dZastreux</title>
		<link>http://blog.vizio360.co.uk/2009/08/flash-cs3-fl-controls-tilelist-allow-no-selection/comment-page-1/#comment-126</link>
		<dc:creator>dZastreux</dc:creator>
		<pubDate>Mon, 26 Oct 2009 11:44:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.vizio360.co.uk/blog/?p=34#comment-126</guid>
		<description>/* As kind of a mini-tribute, I would have like to propose for this code a little addin&#039; for those, like me, who might need some unSelectAll() function, with a totally &quot;free triggering mode&quot; (I mean without using any event like the &quot;click&quot; one)
I needed this because my TileList is interacting with some other components so the selectedItem can change even without a direct click on the list !
I am not sure this is really the cleanest way to do it (I mean using a public void) ...But it seems to work ;)
(My apologies about my probably aweful english syntax, I am a french people soon escaped from school !) */

/** (May) Allow unselecting all items of the list from any other function call **/

public function unSelectAll():void 
{
    var renderer:ICellRenderer;
    var itemIndex:uint;
    for (var i:int=0; i &lt; selectedItems.length; i++) 
    {
        renderer = itemToCellRenderer(selectedItems[i]) as ICellRenderer;
        itemIndex = renderer.listData.index;
        renderer.selected = false;
    }
    _selectedIndices = [];
}
</description>
		<content:encoded><![CDATA[<p>/* As kind of a mini-tribute, I would have like to propose for this code a little addin&#8217; for those, like me, who might need some unSelectAll() function, with a totally &#8220;free triggering mode&#8221; (I mean without using any event like the &#8220;click&#8221; one)<br />
I needed this because my TileList is interacting with some other components so the selectedItem can change even without a direct click on the list !<br />
I am not sure this is really the cleanest way to do it (I mean using a public void) &#8230;But it seems to work <img src='http://blog.vizio360.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
(My apologies about my probably aweful english syntax, I am a french people soon escaped from school !) */</p>
<p>/** (May) Allow unselecting all items of the list from any other function call **/</p>
<p>public function unSelectAll():void<br />
{<br />
    var renderer:ICellRenderer;<br />
    var itemIndex:uint;<br />
    for (var i:int=0; i < selectedItems.length; i++)<br />
    {<br />
        renderer = itemToCellRenderer(selectedItems[i]) as ICellRenderer;<br />
        itemIndex = renderer.listData.index;<br />
        renderer.selected = false;<br />
    }<br />
    _selectedIndices = [];<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dZastreux</title>
		<link>http://blog.vizio360.co.uk/2009/08/flash-cs3-fl-controls-tilelist-allow-no-selection/comment-page-1/#comment-306</link>
		<dc:creator>dZastreux</dc:creator>
		<pubDate>Mon, 26 Oct 2009 11:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.vizio360.co.uk/blog/?p=34#comment-306</guid>
		<description>/* As kind of a mini-tribute, I would have like to propose for this code a little addin&#039; for those, like me, who might need some unSelectAll() function, with a totally &quot;free triggering mode&quot; (I mean without using any event like the &quot;click&quot; one)
I needed this because my TileList is interacting with some other components so the selectedItem can change even without a direct click on the list !
I am not sure this is really the cleanest way to do it (I mean using a public void) ...But it seems to work ;)
(My apologies about my probably aweful english syntax, I am a french people soon escaped from school !) */

/** (May) Allow unselecting all items of the list from any other function call **/

public function unSelectAll():void 
{
    var renderer:ICellRenderer;
    var itemIndex:uint;
    for (var i:int=0; i &lt; selectedItems.length; i++) 
    {
        renderer = itemToCellRenderer(selectedItems[i]) as ICellRenderer;
        itemIndex = renderer.listData.index;
        renderer.selected = false;
    }
    _selectedIndices = [];
}</description>
		<content:encoded><![CDATA[<p>/* As kind of a mini-tribute, I would have like to propose for this code a little addin&#8217; for those, like me, who might need some unSelectAll() function, with a totally &#8220;free triggering mode&#8221; (I mean without using any event like the &#8220;click&#8221; one)<br />
I needed this because my TileList is interacting with some other components so the selectedItem can change even without a direct click on the list !<br />
I am not sure this is really the cleanest way to do it (I mean using a public void) &#8230;But it seems to work <img src='http://blog.vizio360.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
(My apologies about my probably aweful english syntax, I am a french people soon escaped from school !) */</p>
<p>/** (May) Allow unselecting all items of the list from any other function call **/</p>
<p>public function unSelectAll():void<br />
{<br />
    var renderer:ICellRenderer;<br />
    var itemIndex:uint;<br />
    for (var i:int=0; i &lt; selectedItems.length; i++)<br />
    {<br />
        renderer = itemToCellRenderer(selectedItems[i]) as ICellRenderer;<br />
        itemIndex = renderer.listData.index;<br />
        renderer.selected = false;<br />
    }<br />
    _selectedIndices = [];<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

