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
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
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;
}
@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
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
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
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
7 matches
Mail list logo