Select to view content in your preferred language

combobox

1936
1
Jump to solution
04-18-2013 03:44 AM
lifeEsri
Occasional Contributor
I would like to find the value of an item from the index of combobox
                      
for (var i:int = 0; i < combo.legnth(); i++)
{
     Alert.show((combo......(i)));
}
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Life ESRI,

   If you are using a s:DropDownList or s:ComboBox then use something like this:

                for (var i:int = 0; i < testDD.dataProvider.length; i++)                 {                     Alert.show(testDD.itemToLabel( testDD.dataProvider.getItemAt(i)));                 }

View solution in original post

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Life ESRI,

   If you are using a s:DropDownList or s:ComboBox then use something like this:

                for (var i:int = 0; i < testDD.dataProvider.length; i++)                 {                     Alert.show(testDD.itemToLabel( testDD.dataProvider.getItemAt(i)));                 }
0 Kudos