<?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: Open Source Flex Components: AdvancedList and CheckBoxList</title>
	<atom:link href="http://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/feed/" rel="self" type="application/rss+xml" />
	<link>http://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/</link>
	<description>Josh Tynjala explores Flash, Flex, and ActionScript.</description>
	<lastBuildDate>Sat, 31 Jul 2010 02:55:11 -0400</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Felipe</title>
		<link>http://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/comment-page-2/#comment-68207</link>
		<dc:creator>Felipe</dc:creator>
		<pubDate>Thu, 29 Apr 2010 22:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-68207</guid>
		<description>Thank you very much, you have created a wonderful tool!!</description>
		<content:encoded><![CDATA[<p>Thank you very much, you have created a wonderful tool!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Tynjala</title>
		<link>http://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/comment-page-2/#comment-67609</link>
		<dc:creator>Josh Tynjala</dc:creator>
		<pubDate>Fri, 23 Apr 2010 00:05:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-67609</guid>
		<description>Felipe, try setting the selectedIndices property. Just pass an Array of int values corresponding to each of the items you want selected. For instance, if you want the first three items selected, you&#039;d do this:

&lt;pre&gt;list.selectedIndices = [0, 1, 2];&lt;/pre&gt;

If you want all the items selected, then you could use a for loop to go through each item in the data and add its index.</description>
		<content:encoded><![CDATA[<p>Felipe, try setting the selectedIndices property. Just pass an Array of int values corresponding to each of the items you want selected. For instance, if you want the first three items selected, you&#8217;d do this:</p>
<pre>list.selectedIndices = [0, 1, 2];</pre>
<p>If you want all the items selected, then you could use a for loop to go through each item in the data and add its index.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felipe</title>
		<link>http://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/comment-page-2/#comment-67599</link>
		<dc:creator>Felipe</dc:creator>
		<pubDate>Thu, 22 Apr 2010 21:45:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-67599</guid>
		<description>Hi everyone, i&#039;m new in Flex and i need help urgently!!, how can i check all the checkboxes in the start of the program?... i tried by many days and i got any results. The listbox is fedeed by a httpresponse with the data, and works perfectly, but al the checkboxes are unchecked. PLEASE HELP!!!!! (and sorry the bad english)</description>
		<content:encoded><![CDATA[<p>Hi everyone, i&#8217;m new in Flex and i need help urgently!!, how can i check all the checkboxes in the start of the program?&#8230; i tried by many days and i got any results. The listbox is fedeed by a httpresponse with the data, and works perfectly, but al the checkboxes are unchecked. PLEASE HELP!!!!! (and sorry the bad english)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Tynjala</title>
		<link>http://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/comment-page-2/#comment-64041</link>
		<dc:creator>Josh Tynjala</dc:creator>
		<pubDate>Wed, 10 Mar 2010 17:15:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-64041</guid>
		<description>Jeroen, I don&#039;t really have time to support these components anymore. Best of luck finding the solution. Feel free to post it here if you figure something out.</description>
		<content:encoded><![CDATA[<p>Jeroen, I don&#8217;t really have time to support these components anymore. Best of luck finding the solution. Feel free to post it here if you figure something out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeroen Beckers</title>
		<link>http://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/comment-page-2/#comment-64040</link>
		<dc:creator>Jeroen Beckers</dc:creator>
		<pubDate>Wed, 10 Mar 2010 16:55:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-64040</guid>
		<description>Great components. I have 1 problem/bug though. I&#039;m using the CheckBoxList and I want all the items to be disabled if the first item is selected. The first item is a &#039;use all&#039; option while the other rows are different sub options.
[]use all
[]book1
[]book2
[]book3

You get the picture... Now, I set all the enabled properties to false when the first item is selected and I set them to true when it&#039;s unselected. After doing this, the selectedIndices no longer work. If I have 2 items selected and deselect the first, THAT items index is in the selectedIndices while the other (still selected) row isn&#039;t.

Here&#039;s some code:
&lt;pre&gt;var lst:List = e.currentTarget as List;
trace(lst.selectedIndices); //this one is correct !!

var dp:ArrayCollection = lst.dataProvider as ArrayCollection;
if(lst.selectedIndices.length &gt; 0 &amp;&amp; lst.selectedIndices[0] == 0)
{
	for(var i:int = 1; i&lt; dp.length; i++)
	{
		dp.getItemAt(i).canSelect = false;
	}
}
else
{
	for(var j:int = 1; j&lt; dp.length; j++)
	{
		dp.getItemAt(j).canSelect = true;
	}
}
dp.refresh();
trace(lst.selectedIndices);//but this one gives the wrong index.&lt;/pre&gt;
Has to do with firstSelectionData in the ListBase class, but don&#039;t know why ...

Please let me know if you have a solution or if you no longer feel like supporting these components.

Thanks!</description>
		<content:encoded><![CDATA[<p>Great components. I have 1 problem/bug though. I&#8217;m using the CheckBoxList and I want all the items to be disabled if the first item is selected. The first item is a &#8216;use all&#8217; option while the other rows are different sub options.<br />
[]use all<br />
[]book1<br />
[]book2<br />
[]book3</p>
<p>You get the picture&#8230; Now, I set all the enabled properties to false when the first item is selected and I set them to true when it&#8217;s unselected. After doing this, the selectedIndices no longer work. If I have 2 items selected and deselect the first, THAT items index is in the selectedIndices while the other (still selected) row isn&#8217;t.</p>
<p>Here&#8217;s some code:</p>
<pre>var lst:List = e.currentTarget as List;
trace(lst.selectedIndices); //this one is correct !!

var dp:ArrayCollection = lst.dataProvider as ArrayCollection;
if(lst.selectedIndices.length &gt; 0 &amp;&amp; lst.selectedIndices[0] == 0)
{
	for(var i:int = 1; i&lt; dp.length; i++)
	{
		dp.getItemAt(i).canSelect = false;
	}
}
else
{
	for(var j:int = 1; j&lt; dp.length; j++)
	{
		dp.getItemAt(j).canSelect = true;
	}
}
dp.refresh();
trace(lst.selectedIndices);//but this one gives the wrong index.</pre>
<p>Has to do with firstSelectionData in the ListBase class, but don&#039;t know why &#8230;</p>
<p>Please let me know if you have a solution or if you no longer feel like supporting these components.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheff88</title>
		<link>http://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/comment-page-2/#comment-62705</link>
		<dc:creator>Sheff88</dc:creator>
		<pubDate>Tue, 09 Feb 2010 13:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-62705</guid>
		<description>Thank you for great work! Very useful CheckBoxList component</description>
		<content:encoded><![CDATA[<p>Thank you for great work! Very useful CheckBoxList component</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Hardy</title>
		<link>http://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/comment-page-2/#comment-62302</link>
		<dc:creator>Aaron Hardy</dc:creator>
		<pubDate>Tue, 19 Jan 2010 22:56:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-62302</guid>
		<description>You rock my sox.  I used this in a combobox to disable items and it worked like a charm.</description>
		<content:encoded><![CDATA[<p>You rock my sox.  I used this in a combobox to disable items and it worked like a charm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Tynjala</title>
		<link>http://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/comment-page-2/#comment-62285</link>
		<dc:creator>Josh Tynjala</dc:creator>
		<pubDate>Mon, 18 Jan 2010 10:44:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-62285</guid>
		<description>Saurav, I&#039;m afraid I haven&#039;t used this code in some time. It&#039;s possible that changes to the framework have caused new bugs. Or, perhaps, it simply never was compatible with the use-case you mention (as used by a PopUpButton). I certainly never tested it in that situation.</description>
		<content:encoded><![CDATA[<p>Saurav, I&#8217;m afraid I haven&#8217;t used this code in some time. It&#8217;s possible that changes to the framework have caused new bugs. Or, perhaps, it simply never was compatible with the use-case you mention (as used by a PopUpButton). I certainly never tested it in that situation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saurav</title>
		<link>http://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/comment-page-2/#comment-62284</link>
		<dc:creator>Saurav</dc:creator>
		<pubDate>Mon, 18 Jan 2010 10:11:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-62284</guid>
		<description>Sorry, i forgot to mention that i m using &quot;AdvancedList&quot; as popUp for a PopUpButton.</description>
		<content:encoded><![CDATA[<p>Sorry, i forgot to mention that i m using &#8220;AdvancedList&#8221; as popUp for a PopUpButton.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saurav</title>
		<link>http://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/comment-page-2/#comment-62283</link>
		<dc:creator>Saurav</dc:creator>
		<pubDate>Mon, 18 Jan 2010 10:09:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-62283</guid>
		<description>Hi Josh,

Thanks for the tutorial. i tried using the code with flash player 10 flex 3, it shows error when i drag.

Stack trace:
Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)	
mx.core::UIComponent/drawFocus	
	mx.controls.listClasses::ListBase/showDropFeedback	
	mx.controls.listClasses::ListBase/dragEnterHandler	
	flash.events::EventDispatcher/dispatchEventFunction [no source]	
	flash.events::EventDispatcher/dispatchEvent [no source]	
	mx.core::UIComponent/dispatchEvent	
	mx.managers.dragClasses::DragProxy/dispatchDragEvent	
	mx.managers.dragClasses::DragProxy/mouseMoveHandler	


kindly help.</description>
		<content:encoded><![CDATA[<p>Hi Josh,</p>
<p>Thanks for the tutorial. i tried using the code with flash player 10 flex 3, it shows error when i drag.</p>
<p>Stack trace:<br />
Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)<br />
mx.core::UIComponent/drawFocus<br />
	mx.controls.listClasses::ListBase/showDropFeedback<br />
	mx.controls.listClasses::ListBase/dragEnterHandler<br />
	flash.events::EventDispatcher/dispatchEventFunction [no source]<br />
	flash.events::EventDispatcher/dispatchEvent [no source]<br />
	mx.core::UIComponent/dispatchEvent<br />
	mx.managers.dragClasses::DragProxy/dispatchDragEvent<br />
	mx.managers.dragClasses::DragProxy/mouseMoveHandler	</p>
<p>kindly help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
