PDA

View Full Version : Managing a list component



fartek
March 16th, 2010, 01:25 PM
I've been having some problems with a list component lately.
I've added about 50 items to it in actionscript using this syntax.

myList.addItem({label:"Label1", data:"Data1"});
Now when I want to remove some of them I run into problems as I don't know how to do it.


myList.removeItemAt(0 or 1 or 2....)
This seems to work until some point.. It removes every 2nd. item and only allows 25 items to be removed.

Is there a better way to manage your list components in AS3 ?

Thanks!