Hi Daniel

If you use a binding between a value of you model and the
selectedIndex of your combobox,
the control updates automatically whenever you change the model property.

//in MyModel
[Bindable] public var selectedIndex : int

//in MyForm
<mx:ComboBox selectedIndex="{ myModel.selectedIndex }" .../>

Now whenever you change myModel.selectedIndex, the combobox will
update automatically.
You can find some more examples of binding in the docs.

Cheers
Ralf.

Reply via email to