Hi Collin,

Your problem may be that you have an attribute and a node both 
named "label".  Not sure if this will help, but I don't see the 
labelField property set for your comboBox.

<mx:ComboBox id="types" width="200" 
dataProvider="{config_xml.types.type}" 
labelField="label"/>

If that doesn't work, maybe try using a different name for the extra 
node.

-TH

--- In [email protected], "Collin Peters" <[EMAIL PROTECTED]> 
wrote:
>
> I have a problem populating a combobox from XML using data binding.
> 
> The XML is as follows:
> <types>
>       <type event_type_id="1" label="General" />
>       <type event_type_id="2" label="Tanning" />
>       <type event_type_id="3" label="Tennis" >
>               <label>bar</label>
>       </type>
> </types>
> 
> The third <type> is different cause it is a point in my problem.  
My
> combobox is:
> <mx:ComboBox id="types" width="200" 
dataProvider="{config_xml.types.type}" />
> 
> Every sample I have found tell me that this should work with the
> attributes from XML.  However, the entries in the combobox are 
showing
> up blank, though there are three entries.  If I put in a <label> 
child
> then it does show up.  I'm wondering what piece I am missing in 
order
> to properly use the attributes from the XML to populate the 
combobox
> 
> 
> -- 
> Collin Peters
> Lead Software Developer
>


Reply via email to