PDA

View Full Version : Updating dynamically list box


snakebit
01-11-2007, 11:15 PM
hi, my problem is:
i have a list component which I populate from xml (generated from php) file using for loop to add items (adItemsAt). When i delete an item directly from my movie clip (I use a function) and populate again the list with updated xml I have all items double.

tg
01-12-2007, 09:34 PM
before repopulating your listbox... use the listbox.removeAll() method to clear it.