If there is mutiple line with duplicated label in a combobox, how can I do to supress the duplicated line ? In this case its done with macromedia exemple but its to work with dynamic data at the end.
How can I do in this exemple to suppress duplicated data ? Than you this.createClassObject(mx.controls.ComboBox, "my_cb", 10); my_cb.addItem({data:1, label:"One"}); my_cb.addItem({data:2, label:"Two"}); my_cb.addItem({data:3, label:"One"}); my_cb.addItem({data:4, label:"Two"}); var cbListener:Object = new Object(); cbListener.change = function (evt_obj:Object) { trace("Currently selected item is: " + evt_obj.target.selectedItem.label); } my_cb.addEventListener("change", cbListener); _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com