<?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: List control for the one-armed man</title>
	<atom:link href="http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/feed/" rel="self" type="application/rss+xml" />
	<link>http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/</link>
	<description>A blog about Adobe Flex</description>
	<lastBuildDate>Wed, 16 May 2012 20:49:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Casey</title>
		<link>http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/comment-page-1/#comment-210075</link>
		<dc:creator>Casey</dc:creator>
		<pubDate>Mon, 16 Aug 2010 12:33:35 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/#comment-210075</guid>
		<description>Hi Doug,
First of all THANKS for your nice code! It is really helpful.

I have a small issue with this &quot;List control for the one-armed man&quot;

I would like to use it as a list of different countries. And I want to have a the flag of the country just before the corresponding check box.

Any idea on how I can do this ?

Thank you in advance,

Regards,
Casey</description>
		<content:encoded><![CDATA[<p>Hi Doug,<br />
First of all THANKS for your nice code! It is really helpful.</p>
<p>I have a small issue with this &#8220;List control for the one-armed man&#8221;</p>
<p>I would like to use it as a list of different countries. And I want to have a the flag of the country just before the corresponding check box.</p>
<p>Any idea on how I can do this ?</p>
<p>Thank you in advance,</p>
<p>Regards,<br />
Casey</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emmanuel</title>
		<link>http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/comment-page-1/#comment-208473</link>
		<dc:creator>Emmanuel</dc:creator>
		<pubDate>Sat, 03 Oct 2009 22:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/#comment-208473</guid>
		<description>I have a Flex list that displays one item/Object at a time, however, I want to be able to each item/Object according to month:

1. The list contains 12 items/Objects
2. I have the DateChooser already set up w/Scroll

?: I want list&#039;s items/Objects to change whenever I scroll the DateChooser&#039;s month, however, I am having hard time grabbing and manipulating a single list&#039;s item/Object at a time.

I need help; do you have any idea???  

Emmanuel</description>
		<content:encoded><![CDATA[<p>I have a Flex list that displays one item/Object at a time, however, I want to be able to each item/Object according to month:</p>
<p>1. The list contains 12 items/Objects<br />
2. I have the DateChooser already set up w/Scroll</p>
<p>?: I want list&#8217;s items/Objects to change whenever I scroll the DateChooser&#8217;s month, however, I am having hard time grabbing and manipulating a single list&#8217;s item/Object at a time.</p>
<p>I need help; do you have any idea???  </p>
<p>Emmanuel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/comment-page-1/#comment-208113</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Thu, 02 Jul 2009 18:32:08 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/#comment-208113</guid>
		<description>Easy implementation of the control click functionality:

	import flash.events.MouseEvent;
	import spark.components.List;

	/**
	 * A list that always acts as if the control key was pressed down so that when
	 * if an item is selected and another item is selected it wont deselect the
	 * previously selected item.
	 * 
	 * @author	Chad Callahan
	 */
	public class MultiSelectList extends List
	{
		/**
		 * Forces the control key functionality to always be implemented.  See the
		 * class description for more information.
		 * 
		 * @param	event	The event that called the function
		 */
	    override protected function item_clickHandler(event:MouseEvent):void
	    {
	    	event.ctrlKey = true;
	    	super.item_clickHandler(event);
	    }
	}</description>
		<content:encoded><![CDATA[<p>Easy implementation of the control click functionality:</p>
<p>	import flash.events.MouseEvent;<br />
	import spark.components.List;</p>
<p>	/**<br />
	 * A list that always acts as if the control key was pressed down so that when<br />
	 * if an item is selected and another item is selected it wont deselect the<br />
	 * previously selected item.<br />
	 *<br />
	 * @author	Chad Callahan<br />
	 */<br />
	public class MultiSelectList extends List<br />
	{<br />
		/**<br />
		 * Forces the control key functionality to always be implemented.  See the<br />
		 * class description for more information.<br />
		 *<br />
		 * @param	event	The event that called the function<br />
		 */<br />
	    override protected function item_clickHandler(event:MouseEvent):void<br />
	    {<br />
	    	event.ctrlKey = true;<br />
	    	super.item_clickHandler(event);<br />
	    }<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hadas</title>
		<link>http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/comment-page-1/#comment-12343</link>
		<dc:creator>Hadas</dc:creator>
		<pubDate>Sun, 02 Sep 2007 12:51:47 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/#comment-12343</guid>
		<description>Doug Hi,

This is a very useful example.  
I need to create multiselect combobox, with dropdown list with checkbox. This component is a great start. 
If you select few items and few of them don&#039;t have item renderer (if the item isn&#039;t visible in the list ), when you trying to deselect this specific item you get : 

TypeError: Error #1034: Type Coercion failed: cannot convert &quot;Item 13&quot; to mx.controls.listClasses.ListBaseSelectionData.
	at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::removeSelectionData()[C:\dev\flex_201_ja\sdk\frameworks\mx\controls\listClasses\ListBase.as:5131]
	at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::selectItem()[C:\dev\flex_201_ja\sdk\frameworks\mx\controls\listClasses\ListBase.as:4488]
	at AlternateSelectionList/AlternateSelectionList::selectItem()[C:\Documents and Settings\hadas.or\My Documents\ComboBoxPrompt\ComboBoxPrompt\AlternateSelectionList.as:74]
	at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::mouseDownHandler()[C:\dev\flex_201_ja\sdk\frameworks\mx\controls\listClasses\ListBase.as:7028]
	at mx.controls::List/mx.controls:List::mouseDownHandler()[C:\dev\flex_201_ja\sdk\frameworks\mx\controls\List.as:1880]


Have any ideas? 
I&#039;m looking for info regarding how list , listbase components are working, not just description of the p[roperties and methods , do you know where I can find such information?

Thanks</description>
		<content:encoded><![CDATA[<p>Doug Hi,</p>
<p>This is a very useful example.<br />
I need to create multiselect combobox, with dropdown list with checkbox. This component is a great start.<br />
If you select few items and few of them don&#8217;t have item renderer (if the item isn&#8217;t visible in the list ), when you trying to deselect this specific item you get : </p>
<p>TypeError: Error #1034: Type Coercion failed: cannot convert &#8220;Item 13&#8243; to mx.controls.listClasses.ListBaseSelectionData.<br />
	at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::removeSelectionData()[C:\dev\flex_201_ja\sdk\frameworks\mx\controls\listClasses\ListBase.as:5131]<br />
	at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::selectItem()[C:\dev\flex_201_ja\sdk\frameworks\mx\controls\listClasses\ListBase.as:4488]<br />
	at AlternateSelectionList/AlternateSelectionList::selectItem()[C:\Documents and Settings\hadas.or\My Documents\ComboBoxPrompt\ComboBoxPrompt\AlternateSelectionList.as:74]<br />
	at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::mouseDownHandler()[C:\dev\flex_201_ja\sdk\frameworks\mx\controls\listClasses\ListBase.as:7028]<br />
	at mx.controls::List/mx.controls:List::mouseDownHandler()[C:\dev\flex_201_ja\sdk\frameworks\mx\controls\List.as:1880]</p>
<p>Have any ideas?<br />
I&#8217;m looking for info regarding how list , listbase components are working, not just description of the p[roperties and methods , do you know where I can find such information?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/comment-page-1/#comment-5515</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Wed, 13 Jun 2007 18:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/#comment-5515</guid>
		<description>Doug,

I&#039;ve been using a slightly modified version of this (as we discussed on the flexcoders list) for a while now.

I&#039;m switching from the standalone flex builder to the flex builder plugin, and I can&#039;t get the app I use this in to compile anymore because of a strange error in this component:

1119: Access of possibly undefined property CHANGE through a reference with static type Class.	EntityLookup/ads	CheckBoxListItemRenderer.as	/EntityLookup/ads/CheckBoxListItemRenderer.as

(I changed it from CheckBoxItemRenderer to CheckBoxListItemRenderer)

Now, the line at which this error is occuring is in this method:

override public function set listData(value:BaseListData):void {
	super.listData = value;
	
	this.selected = (listData.owner as ListBase).isItemSelected(listData.uid);
	
	//all we need to do is add an event listener to get notified whenever
	//there a change event dispatched by the main list control
	(value.owner as ListBase).addEventListener(ListEvent.CHANGE, listEventHandler);
}


I&#039;m sure this response is gonna come out looking like crap but hopefully you&#039;ll get the idea.

I don&#039;t understand why it worked just fine before (when I was using FlexBuilder standaloen version) and it does not work in the plugin version

Got any ideas?</description>
		<content:encoded><![CDATA[<p>Doug,</p>
<p>I&#8217;ve been using a slightly modified version of this (as we discussed on the flexcoders list) for a while now.</p>
<p>I&#8217;m switching from the standalone flex builder to the flex builder plugin, and I can&#8217;t get the app I use this in to compile anymore because of a strange error in this component:</p>
<p>1119: Access of possibly undefined property CHANGE through a reference with static type Class.	EntityLookup/ads	CheckBoxListItemRenderer.as	/EntityLookup/ads/CheckBoxListItemRenderer.as</p>
<p>(I changed it from CheckBoxItemRenderer to CheckBoxListItemRenderer)</p>
<p>Now, the line at which this error is occuring is in this method:</p>
<p>override public function set listData(value:BaseListData):void {<br />
	super.listData = value;</p>
<p>	this.selected = (listData.owner as ListBase).isItemSelected(listData.uid);</p>
<p>	//all we need to do is add an event listener to get notified whenever<br />
	//there a change event dispatched by the main list control<br />
	(value.owner as ListBase).addEventListener(ListEvent.CHANGE, listEventHandler);<br />
}</p>
<p>I&#8217;m sure this response is gonna come out looking like crap but hopefully you&#8217;ll get the idea.</p>
<p>I don&#8217;t understand why it worked just fine before (when I was using FlexBuilder standaloen version) and it does not work in the plugin version</p>
<p>Got any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/comment-page-1/#comment-1341</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Wed, 28 Mar 2007 20:04:41 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/#comment-1341</guid>
		<description>I think the right functionality would be this:

Pressing the mouse button on an unselected item would begin the selection process. Drag the mouse to select the range. Pressing the mouse on a selected item(s) would initiate a drag (as in move these items to another control) of the selected items (so you could drop them in another control), it would not initiate a new selection range. Pressing and releasing the mouse on a selected item without dragging would de-select that item, as if you had been holding down the control-key. Pressing the mouse and releasing on an unselected item would select that item as if you were holding control.

I kind of like this idea, we&#039;ll see if I have time.</description>
		<content:encoded><![CDATA[<p>I think the right functionality would be this:</p>
<p>Pressing the mouse button on an unselected item would begin the selection process. Drag the mouse to select the range. Pressing the mouse on a selected item(s) would initiate a drag (as in move these items to another control) of the selected items (so you could drop them in another control), it would not initiate a new selection range. Pressing and releasing the mouse on a selected item without dragging would de-select that item, as if you had been holding down the control-key. Pressing the mouse and releasing on an unselected item would select that item as if you were holding control.</p>
<p>I kind of like this idea, we&#8217;ll see if I have time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/comment-page-1/#comment-1339</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 28 Mar 2007 19:14:08 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/#comment-1339</guid>
		<description>I&#039;d say it should scroll too.

However, my concern on drag selecting, where as a useful feature, would become counter-intuitive if you wanted to drag/drop the selected items into another control.

How should drag/drop be dealt with in this context?</description>
		<content:encoded><![CDATA[<p>I&#8217;d say it should scroll too.</p>
<p>However, my concern on drag selecting, where as a useful feature, would become counter-intuitive if you wanted to drag/drop the selected items into another control.</p>
<p>How should drag/drop be dealt with in this context?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/comment-page-1/#comment-1334</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Wed, 28 Mar 2007 15:27:14 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/#comment-1334</guid>
		<description>Yeah, click and drag to select ranges would be much better. I might try to do that because I think that might actually be a useful control. This version that I posted might be useful for someone, but you certainly have to get to know how it works before you can use it, it doesn&#039;t really make good intuitive sense. I think dragging to select ranges and then having the default clicks simulate control-clicks would actually be pretty intuitive for people. Only issue is if you&#039;re trying to drag from a visible item to an item below the visible area. Should the list scroll automatically as you&#039;re dragging (my first reaction is it should).</description>
		<content:encoded><![CDATA[<p>Yeah, click and drag to select ranges would be much better. I might try to do that because I think that might actually be a useful control. This version that I posted might be useful for someone, but you certainly have to get to know how it works before you can use it, it doesn&#8217;t really make good intuitive sense. I think dragging to select ranges and then having the default clicks simulate control-clicks would actually be pretty intuitive for people. Only issue is if you&#8217;re trying to drag from a visible item to an item below the visible area. Should the list scroll automatically as you&#8217;re dragging (my first reaction is it should).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simeon</title>
		<link>http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/comment-page-1/#comment-1332</link>
		<dc:creator>Simeon</dc:creator>
		<pubDate>Wed, 28 Mar 2007 14:53:02 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/#comment-1332</guid>
		<description>What I would love is to see this control in a combo box.  Now that you have it working I am sure there is not much to it.  But I think that would be a nice control.</description>
		<content:encoded><![CDATA[<p>What I would love is to see this control in a combo box.  Now that you have it working I am sure there is not much to it.  But I think that would be a nice control.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/comment-page-1/#comment-1330</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Wed, 28 Mar 2007 13:37:41 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/#comment-1330</guid>
		<description>It seems the shift click functionality takes precedence over attempts to replicate control click functionality.  Perhaps it would be easier to replicate shift click only for items below the last item, that way you could start from the bottom and go up when you only want to control click a few items and not have to deselect the options between them.

Also, a bug: Click item 1, click item 19, click item 1, click item 2.  Gives a type coercion error.</description>
		<content:encoded><![CDATA[<p>It seems the shift click functionality takes precedence over attempts to replicate control click functionality.  Perhaps it would be easier to replicate shift click only for items below the last item, that way you could start from the bottom and go up when you only want to control click a few items and not have to deselect the options between them.</p>
<p>Also, a bug: Click item 1, click item 19, click item 1, click item 2.  Gives a type coercion error.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

