I’m using the combobox component and I want to manually dispatch the “change” event. How is this done?
// Dispatches when user changes selection
comboType.addEventListener("change",cbListenerDialogue);
// Does not manually dispatch
comboType.dispatchEvent("change");
comboType.dispatchEvent(new Event("change"));
The string value you use for the dispatch has to match what’s already defined in Flash.
This should to the trick.
comboType.dispatchEvent(new Event(Event.CHANGE, true));Also: AS3 Textbox Change Event Not Firing