Flex comboBox编程设置selectedindex时不触发change事件解决办法
view plain
//当更改或添加记录后,重新加载时显示相关记录
//cbShops是comboBox的ID
cbShops.selectedIndex=shopCount;
//当设置selectedIndex时不会触发change事件,要编码触发cbShops.dispatchEvent(new ListEvent("change"));
view plain
//当更改或添加记录后,重新加载时显示相关记录
//cbShops是comboBox的ID
cbShops.selectedIndex=shopCount;
//当设置selectedIndex时不会触发change事件,要编码触发cbShops.dispatchEvent(new ListEvent("change"));