<?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"
	>
<channel>
	<title>Comments on: ComboBox Bug</title>
	<atom:link href="http://blog.everythingflex.com/2007/02/26/combobox-bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.everythingflex.com/2007/02/26/combobox-bug/</link>
	<description>Everything related to Adobe Flex and AIR</description>
	<pubDate>Sun, 20 Jul 2008 20:06:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Bourne</title>
		<link>http://blog.everythingflex.com/2007/02/26/combobox-bug/#comment-5088</link>
		<dc:creator>Bourne</dc:creator>
		<pubDate>Thu, 20 Mar 2008 18:57:01 +0000</pubDate>
		<guid isPermaLink="false">http://control-access8.com/~eflex/wordpress/?p=167#comment-5088</guid>
		<description>That's not a bug. There's an empty string in the ComboBox's list of values, why should it treat that object any different from any of the other objects in it's list? 

It's an easy way (or alternative way) to reset the combobox back to an unselected value if you don't want to use the 'prompt' setting (as mentioned above, it has issues).

Otherwise, you'd be *forced* to use a reset button to reset the form/combobox - no, we don't want that at all.</description>
		<content:encoded><![CDATA[<p>That&#8217;s not a bug. There&#8217;s an empty string in the ComboBox&#8217;s list of values, why should it treat that object any different from any of the other objects in it&#8217;s list? </p>
<p>It&#8217;s an easy way (or alternative way) to reset the combobox back to an unselected value if you don&#8217;t want to use the &#8216;prompt&#8217; setting (as mentioned above, it has issues).</p>
<p>Otherwise, you&#8217;d be *forced* to use a reset button to reset the form/combobox - no, we don&#8217;t want that at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KIM</title>
		<link>http://blog.everythingflex.com/2007/02/26/combobox-bug/#comment-4933</link>
		<dc:creator>KIM</dc:creator>
		<pubDate>Thu, 08 Nov 2007 06:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://control-access8.com/~eflex/wordpress/?p=167#comment-4933</guid>
		<description>Hi Rich. here in tokyo. 
great!  thanks for your solution.
I've worried about this problem for a week!
thanks again~</description>
		<content:encoded><![CDATA[<p>Hi Rich. here in tokyo.<br />
great!  thanks for your solution.<br />
I&#8217;ve worried about this problem for a week!<br />
thanks again~</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vent</title>
		<link>http://blog.everythingflex.com/2007/02/26/combobox-bug/#comment-4818</link>
		<dc:creator>Vent</dc:creator>
		<pubDate>Thu, 27 Sep 2007 04:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://control-access8.com/~eflex/wordpress/?p=167#comment-4818</guid>
		<description>Hi, I'm using OS 10.2 with developer tools installed from the CD in the box. I was trying to build an AS Studio application with a combo box in the interface and I came accross a strange bug. I set the combo box to generate "should begin editing" and "should end editing" events. However, whenever I would start editing the contents of the box or hit return after editing the contents, I would get an error "NSCannotCreateScriptCommandError (10)" and the event handlers wouldn't be called. I was able to reproduce this bug reliably in the simplest manner possible. I created a new Applescript Application in Project Builder with a window in its interface and nothing in the window but a combo box set to generate "should begin editing" and "should end editing" events.

Can anybody reproduce this bug? Is it a known isssue with AS Studio? I searched all my saved emails from the AS Studio list and was unable to find any mention of this.

light bars
http://www.truckaccessorywholesale.com/specials/light_bars.html</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m using OS 10.2 with developer tools installed from the CD in the box. I was trying to build an AS Studio application with a combo box in the interface and I came accross a strange bug. I set the combo box to generate &#8220;should begin editing&#8221; and &#8220;should end editing&#8221; events. However, whenever I would start editing the contents of the box or hit return after editing the contents, I would get an error &#8220;NSCannotCreateScriptCommandError (10)&#8221; and the event handlers wouldn&#8217;t be called. I was able to reproduce this bug reliably in the simplest manner possible. I created a new Applescript Application in Project Builder with a window in its interface and nothing in the window but a combo box set to generate &#8220;should begin editing&#8221; and &#8220;should end editing&#8221; events.</p>
<p>Can anybody reproduce this bug? Is it a known isssue with AS Studio? I searched all my saved emails from the AS Studio list and was unable to find any mention of this.</p>
<p>light bars<br />
<a href="http://www.truckaccessorywholesale.com/specials/light_bars.html" rel="nofollow">http://www.truckaccessorywholesale.com/specials/light_bars.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin again</title>
		<link>http://blog.everythingflex.com/2007/02/26/combobox-bug/#comment-4815</link>
		<dc:creator>Kevin again</dc:creator>
		<pubDate>Mon, 17 Sep 2007 07:53:45 +0000</pubDate>
		<guid isPermaLink="false">http://control-access8.com/~eflex/wordpress/?p=167#comment-4815</guid>
		<description>And no, selectedItem and selectedValue aren't the same thing.</description>
		<content:encoded><![CDATA[<p>And no, selectedItem and selectedValue aren&#8217;t the same thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin again</title>
		<link>http://blog.everythingflex.com/2007/02/26/combobox-bug/#comment-4814</link>
		<dc:creator>Kevin again</dc:creator>
		<pubDate>Mon, 17 Sep 2007 07:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://control-access8.com/~eflex/wordpress/?p=167#comment-4814</guid>
		<description>I now believe the prompt property is pure evil and should be avoided at least in Flex 2. 

We've found (what for us is) a showstopping bug: 

Suppose I have a typical set of interlinked comboboxes for country/state/suburb.
Picking the country restricts the states which restricts the suburbs.

We don't want a specific value to default into any of the comoboboxes, so we used the prompt value.

Country/State and Suburb are optional fields. One or more could be filled in.

The values are saved to the database. So far, so good.

HOWEVER, they can also be retrieved  from the database and edited and saved again.

The damn prompt property, however, seems to override the selectedIndex and selectedItem properties......sometimes.  (PS: We're using the enhanced combobox from forta.com which has a "selectedValue" property on it. Can't fathom how the folks at Macromedia missed that one, by the way) 

This means that the comboboxes get their values blanked out by the prompt property.

I think there are issues with competing forces trying to set the selected value of the combobox and events aren't firing in a predictable order. Is it possible that the Prompt property is sometimes evaluated after CreationComplete?

The whole interlinked comboboxes scenario is a really typical scenario for us, but we've had to introduce a rule "No Prompt Properties" allowed in our dev team until we can find a fix, (which may be to override the behaviour and fix the bug)

PS: We've also found that setting the selectedIndex to -1 doesn't work at all when your combobox has it's selectedValue bound to something. 

Disobedient controls are really frustrating!</description>
		<content:encoded><![CDATA[<p>I now believe the prompt property is pure evil and should be avoided at least in Flex 2. </p>
<p>We&#8217;ve found (what for us is) a showstopping bug: </p>
<p>Suppose I have a typical set of interlinked comboboxes for country/state/suburb.<br />
Picking the country restricts the states which restricts the suburbs.</p>
<p>We don&#8217;t want a specific value to default into any of the comoboboxes, so we used the prompt value.</p>
<p>Country/State and Suburb are optional fields. One or more could be filled in.</p>
<p>The values are saved to the database. So far, so good.</p>
<p>HOWEVER, they can also be retrieved  from the database and edited and saved again.</p>
<p>The damn prompt property, however, seems to override the selectedIndex and selectedItem properties&#8230;&#8230;sometimes.  (PS: We&#8217;re using the enhanced combobox from forta.com which has a &#8220;selectedValue&#8221; property on it. Can&#8217;t fathom how the folks at Macromedia missed that one, by the way) </p>
<p>This means that the comboboxes get their values blanked out by the prompt property.</p>
<p>I think there are issues with competing forces trying to set the selected value of the combobox and events aren&#8217;t firing in a predictable order. Is it possible that the Prompt property is sometimes evaluated after CreationComplete?</p>
<p>The whole interlinked comboboxes scenario is a really typical scenario for us, but we&#8217;ve had to introduce a rule &#8220;No Prompt Properties&#8221; allowed in our dev team until we can find a fix, (which may be to override the behaviour and fix the bug)</p>
<p>PS: We&#8217;ve also found that setting the selectedIndex to -1 doesn&#8217;t work at all when your combobox has it&#8217;s selectedValue bound to something. </p>
<p>Disobedient controls are really frustrating!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
