View Full Version : call a function with a Combobox
ruiganga
July 6th, 2009, 12:30 PM
Hi
I have 2 comboboxes. One with countries and athe second with the citys. The second is only filled after the first is selected. How can I do that?
Thanks
GrndMasterFlash
July 6th, 2009, 12:36 PM
ur_box.addEventListener("change", updateCities);
function updateCities(e:Event)
{
//some code for adding the cities
}
ruiganga
July 6th, 2009, 12:42 PM
Wow, easy :) Thanks
Can you also help with this: I need to clear the Array. How can I do this?
GrndMasterFlash
July 6th, 2009, 12:59 PM
to clear out your combo box just use the removeAll function
ur_box.removeAll();
to clear an array you can just set it to blank
ur_array = [];
ruiganga
July 6th, 2009, 01:00 PM
Thanks again :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.