# List Component

**URL:** <https://forum.kirupa.com/t/list-component/299888>\
**Category:** Uncategorized\
**Created:** [November 12, 2009, 7:38am UTC](https://forum.kirupa.com/t/list-component/299888 "2009-11-12T07:38:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guilovsh](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@guilovsh](https://forum.kirupa.com/u/guilovsh)\
**Post date:** [November 12, 2009, 7:38am UTC](https://forum.kirupa.com/t/list-component/299888/1 "2009-11-12T07:38:28Z")

</div>

Hello, i have the following code in which im trying to add an item in a List Component which instance has been named “box”. That “trace” function used there returns me “\_level0.Game.replayMenu.box”, so im not pointing to something undefined…

this = \_root.Game.ui;  
this.\_parent.attachMovie (“replayMenu”,“replayMenu”,this.\_parent.getNextHighestDepth ());  
this.\_parent.replayMenu.\_x = 450;  
this.\_parent.replayMenu.\_y = 250;  
trace(this.\_parent.replayMenu.box);  
this.\_parent.replayMenu.box.addItem(“blablabla”,“blablabla”);

The problem is that my list simply doesn´t add any items at all, i’ve already tried using addItem({label:“blablabla”, data:“blablabla”}), but it just don´t work.

Thanks, hope someone can help me…
