RE: [flexcoders] Re: Sugestion for ComboBox component

2007-12-30 Thread Tracy Spratt
Sent: Saturday, December 29, 2007 4:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Sugestion for ComboBox component have you tried using myCombo.selectedItem = aTextValue? I don't know if that works, I'm just suggesting it is worth a try. Painful experience of a change

[flexcoders] Re: Sugestion for ComboBox component

2007-12-29 Thread simonjpalmer
have you tried using myCombo.selectedItem = aTextValue? I don't know if that works, I'm just suggesting it is worth a try. Painful experience of a change of the textual value from one string to another has led me to encapsulating domain values like these into a separate list and only storing

[flexcoders] Re: Sugestion for ComboBox component

2007-12-28 Thread danielvlopes
Hello Tracy, i made exactly this, extended and use this function: public function setComboItem(combo:String,item:String):void{ for(var i:Number = 0; i this[combo].dataProvider.length; i++) { if(this[combo].dataProvider[i] == item){ this[combo].selectedIndex = i; }

RE: [flexcoders] Re: Sugestion for ComboBox component

2007-12-28 Thread Tracy Spratt
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of danielvlopes Sent: Friday, December 28, 2007 2:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Sugestion for ComboBox component Hello Tracy, i made exactly this, extended and use this function: public function setComboItem(combo:String

[flexcoders] Re: Sugestion for ComboBox component

2007-12-28 Thread danielvlopes
To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Sugestion for ComboBox component Hello Tracy, i made exactly this, extended and use this function: public function setComboItem(combo:String,item:String):void{ for(var i:Number = 0; i this[combo].dataProvider.length; i

[flexcoders] Re: Sugestion for ComboBox component

2007-12-28 Thread danielvlopes
in continuing the loop once the match is found. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of danielvlopes Sent: Friday, December 28, 2007 2:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Sugestion

RE: [flexcoders] Re: Sugestion for ComboBox component

2007-12-28 Thread Tracy Spratt
To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Sugestion for ComboBox component In my case when had more than one value i always use dataprovider with id and nome, in this case i use this method: public function setComboComplexItem(combo:String,item:String):void{ for(var i:Number = 0; i