The example below is an itemRenderer that uses an extended Combobox that does this.
http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI D=767 Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Thursday, December 13, 2007 10:58 AM To: [email protected] Subject: RE: [flexcoders] combobox- selecting an item within You'll have to scan the collection and determine the index that has the data you want and set selectedIndex ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of bmilesp Sent: Wednesday, December 12, 2007 9:43 PM To: [email protected] Subject: [flexcoders] combobox- selecting an item within i have an httpservice as a dataprovider for a combobox that outputs: <countries> <country label="USA" data="1"/> <country label="Canada" data="2"/> <country label="Mexico" data="3"/> </countries> i want canada to be selected initially. i know you can use selectedIndex, but that will not work for me since i can only use the "data" field as reference. is there any way to pass "selected", like in an html form- something like: <country label="Canada" data="2" selected:true /> or is there any way to call something like: country.selected=2 and use the data reference? I tried selectedItem=2 (wich would've been great) but no success. I appreciate your help! thanks

