I have a combobox in form, and on change value of it i want to update my datagrid dataprovider data accordingly.
The combobox selectedIndex can change by user or through AS(Action Script) code.
I tried the change event of combobox but it's not triggered when i set the index through AS.
eg: cmbID.selectedIndex = 1;
I tried the valueCommit event. But it executed three times.(not known the exact reason).
Is there is a common event which i fire on Change by user and change through the AS.
Those are your choices. Since you know when you're setting the selectedIndex in AS, you could choose to fire a custom event then.
Flex SDK Developer
Adobe Systems Inc.