Dynamic populate ComboBox (Flex)
- by Vinzcent
Hey,
I want to populate a ComboBox after a clicked a button.
This is my code:
var dpNames:ArrayCollection = new ArrayCollection();
for each(var ca:Categorie in arrCategories)
{
dpNames.addItem ({label: ca.name, data: ca.value});
}
cbWijzigCategorie.dataProvider = dpNames;
But when he executes the last…