<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Specifying a custom label field on a Flex ComboBox control</title>
	<link>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 05 Dec 2008 10:51:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Steve</title>
		<link>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-13647</link>
		<author>Steve</author>
		<pubDate>Wed, 25 Jun 2008 10:54:54 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-13647</guid>
		<description>Sorry, didn't read your other post on ComboBox labelFunctions :}

http://blog.flexexamples.com/2007/09/25/creating-a-simple-label-function-on-a-flex-combobox-control/

Thanks

Steve</description>
		<content:encoded><![CDATA[<p>Sorry, didn&#8217;t read your other post on ComboBox labelFunctions :}</p>
<p><a href="http://blog.flexexamples.com/2007/09/25/creating-a-simple-label-function-on-a-flex-combobox-control/" rel="nofollow">http://blog.flexexamples.com/2007/09/25/creating-a-simple-label-function-on-a-flex-combobox-control/</a></p>
<p>Thanks</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-13646</link>
		<author>Steve</author>
		<pubDate>Wed, 25 Jun 2008 10:50:04 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-13646</guid>
		<description>Sorry for posting to an old thread, In your original example, how would I get the labelField of the combobox to display "(@abbrev) @name". e.g. "(CA) California".

I've tried some labelFunctions, but though they work well with datagrids, I can't seem to find out how to make them work with ComboBoxes.

Your help would be greately appreciated.

Cheers

Steve.</description>
		<content:encoded><![CDATA[<p>Sorry for posting to an old thread, In your original example, how would I get the labelField of the combobox to display &#8220;(@abbrev) @name&#8221;. e.g. &#8220;(CA) California&#8221;.</p>
<p>I&#8217;ve tried some labelFunctions, but though they work well with datagrids, I can&#8217;t seem to find out how to make them work with ComboBoxes.</p>
<p>Your help would be greately appreciated.</p>
<p>Cheers</p>
<p>Steve.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-7371</link>
		<author>peterd</author>
		<pubDate>Thu, 06 Mar 2008 04:03:36 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-7371</guid>
		<description>smarkamyth,

I've never tried it, but I'm sure it is possible. You'd need a way to convert videos using a command line, I imagine.

Something like:
1) User uploads a WMV/source video file using FileReference (or HTML or whatever).
2) Server-side script (ColdFusion, PHP, ASP.NET, Perl, Ruby, Java, etc) calls a command-line script to convert the video file from formatX to formatY (or even copies/FTPs the video file to a separate server for transcoding). 
3) Once transcoding is complete, delete the original WMV/source video file and store the FLV back on the web server (or wherever).

I imagine the tricky part is finding the appropriate conversion software that works best for you.
You may have better luck asking on a high-traffic list, such as FlexCoders.

Peter</description>
		<content:encoded><![CDATA[<p>smarkamyth,</p>
<p>I&#8217;ve never tried it, but I&#8217;m sure it is possible. You&#8217;d need a way to convert videos using a command line, I imagine.</p>
<p>Something like:<br />
1) User uploads a WMV/source video file using FileReference (or HTML or whatever).<br />
2) Server-side script (ColdFusion, PHP, ASP.NET, Perl, Ruby, Java, etc) calls a command-line script to convert the video file from formatX to formatY (or even copies/FTPs the video file to a separate server for transcoding).<br />
3) Once transcoding is complete, delete the original WMV/source video file and store the FLV back on the web server (or wherever).</p>
<p>I imagine the tricky part is finding the appropriate conversion software that works best for you.<br />
You may have better luck asking on a high-traffic list, such as FlexCoders.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: smarkamyth</title>
		<link>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-7370</link>
		<author>smarkamyth</author>
		<pubDate>Thu, 06 Mar 2008 03:44:05 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-7370</guid>
		<description>Is it possible to script the encoding of wmv to flv when a user uploads the wmv file?

example:
User uploads WMV through Flex2/AS3 interface
System auto-magically converts to FLV
System stores FLV
Stores a link to it for later display in Flex2/AS3 interface

cheers,
Smark A Myth</description>
		<content:encoded><![CDATA[<p>Is it possible to script the encoding of wmv to flv when a user uploads the wmv file?</p>
<p>example:<br />
User uploads WMV through Flex2/AS3 interface<br />
System auto-magically converts to FLV<br />
System stores FLV<br />
Stores a link to it for later display in Flex2/AS3 interface</p>
<p>cheers,<br />
Smark A Myth</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-3855</link>
		<author>peterd</author>
		<pubDate>Sun, 04 Nov 2007 07:01:29 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-3855</guid>
		<description>Doug,

I replied in the &lt;a href="http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=651&#038;threadid=1312160" rel="nofollow"&gt;forum&lt;/a&gt;. Would you mind posting a sample of the XML in the Adobe forums (my blog comments are pretty hard to paste code into) and I can try and take a look.

Peter</description>
		<content:encoded><![CDATA[<p>Doug,</p>
<p>I replied in the <a href="http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=651&#038;threadid=1312160" rel="nofollow">forum</a>. Would you mind posting a sample of the XML in the Adobe forums (my blog comments are pretty hard to paste code into) and I can try and take a look.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-3848</link>
		<author>Doug</author>
		<pubDate>Sun, 04 Nov 2007 03:18:51 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-3848</guid>
		<description>I posted this in the Adobe flex builder 3 forum, but I'll ask you as well:

I can't get the combobox to display data properly. The server returns a list of photos and other data in xml. I want to have the combobox display a list of the photo id numbers, and let the user select a photo. When I use the xml as the dataprovider, then set LabelField to @id, it just says [object Object] in each of the items. When I use an item renderer inside the combobox (as shown in the attached code), the items display properly in the drop down part, but the Prompt is replaced with [object Object] and when an item is selected it shows as [object Object].

Any ideas on how to fix this? 


					
						
						
						
					
				</description>
		<content:encoded><![CDATA[<p>I posted this in the Adobe flex builder 3 forum, but I&#8217;ll ask you as well:</p>
<p>I can&#8217;t get the combobox to display data properly. The server returns a list of photos and other data in xml. I want to have the combobox display a list of the photo id numbers, and let the user select a photo. When I use the xml as the dataprovider, then set LabelField to @id, it just says [object Object] in each of the items. When I use an item renderer inside the combobox (as shown in the attached code), the items display properly in the drop down part, but the Prompt is replaced with [object Object] and when an item is selected it shows as [object Object].</p>
<p>Any ideas on how to fix this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-3205</link>
		<author>peterd</author>
		<pubDate>Thu, 04 Oct 2007 04:41:03 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-3205</guid>
		<description>Greg,

You mean like this?:

&lt;pre class="code"&gt;
var selectedAbbrev:String = String(comboBox.selectedItem.abbrev);
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Greg,</p>
<p>You mean like this?:</p>
<pre class="code">
var selectedAbbrev:String = String(comboBox.selectedItem.abbrev);
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-3187</link>
		<author>Greg</author>
		<pubDate>Wed, 03 Oct 2007 15:42:20 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-3187</guid>
		<description>Hey thanks.  But I'd like to continue to use the same label, just access the data of another attribute.  So somewhere in my application perform a query on the value of abbrev.  
Say I have a list of employees and employee numbers:


etc..

How would I display name in the combo box but access empnum in the code?

Thanks for your help!

Greg</description>
		<content:encoded><![CDATA[<p>Hey thanks.  But I&#8217;d like to continue to use the same label, just access the data of another attribute.  So somewhere in my application perform a query on the value of abbrev.<br />
Say I have a list of employees and employee numbers:</p>
<p>etc..</p>
<p>How would I display name in the combo box but access empnum in the code?</p>
<p>Thanks for your help!</p>
<p>Greg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-3156</link>
		<author>peterd</author>
		<pubDate>Tue, 02 Oct 2007 18:34:07 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-3156</guid>
		<description>Greg,

To display the "abbrev" instead of the "name", you could use the following code:
&lt;pre class="code"&gt;
&#60;mx:ComboBox id="comboBox"
        prompt="Please select a State..."
        dataProvider="{statesXMLList}"
        labelField="@abbrev" /&#62;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Greg,</p>
<p>To display the &#8220;abbrev&#8221; instead of the &#8220;name&#8221;, you could use the following code:</p>
<pre class="code">
&lt;mx:ComboBox id="comboBox"
        prompt="Please select a State..."
        dataProvider="{statesXMLList}"
        labelField="@abbrev" /&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-3146</link>
		<author>Greg</author>
		<pubDate>Tue, 02 Oct 2007 12:34:07 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/25/specifying-a-custom-label-field-on-a-flex-combobox-control/#comment-3146</guid>
		<description>Hey, nice website! 
I was woundering how to make the selected value different from the label value.  In the example above how would I obtain the value of abbrev?  

You've been a great help!
Thanks,

Greg</description>
		<content:encoded><![CDATA[<p>Hey, nice website!<br />
I was woundering how to make the selected value different from the label value.  In the example above how would I obtain the value of abbrev?  </p>
<p>You&#8217;ve been a great help!<br />
Thanks,</p>
<p>Greg</p>
]]></content:encoded>
	</item>
</channel>
</rss>
