# Managing a list component

**URL:** <https://forum.kirupa.com/t/managing-a-list-component/306496>\
**Category:** flash\
**Created:** [March 16, 2010, 5:25pm UTC](https://forum.kirupa.com/t/managing-a-list-component/306496 "2010-03-16T17:25:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fartek](https://avatars.discourse-cdn.com/v4/letter/f/9e8a1a/32.png) [@fartek](https://forum.kirupa.com/u/fartek)\
**Post date:** [March 16, 2010, 5:25pm UTC](https://forum.kirupa.com/t/managing-a-list-component/306496/1 "2010-03-16T17:25:04Z")

</div>

I’ve been having some problems with a list component lately.  
I’ve added about 50 items to it in actionscript using this syntax.

```auto
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.

```auto
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!
