Can u please give the full code.
Where is the data provider for combo box?
Thanks for the reply.
I am giving dataProvider as an arry. If u change by manually it is working fine.
But getting problem when i am changing dynamically.
var combo:ComboBox = new ComboBox();
combo.dataProvider = array;
combo.addEventListener(Event.CHANGE , changeHandler);
in actionscript i am writing like this.
combo.selectedIndex = 1;
And it is changing to selected index but not calling corresponding changeHandler method.
I think the event will not fire.
Because change Handler is a listener for the event "Event.CHANGE"
Unless the above event is captured by the handler, handler will not be called.
In order to initiate the above event,
1.user has to click on the combobox -> flex will dispatch change event automatically
2.developer has to dispatch the event(combo. dispatchEvent( new Event(Event.CHANGE));
I think the point number 2 is the solution for your case.
Thanks for ur Reply.
Its working fine. The second point is helped me a lot.
try the IndexChangeEvent.CHANGE
Happy to know it is working.
Please put the answer as correct answer...... others might be benefited.