# Using FListBox.addItem

**URL:** <https://forum.kirupa.com/t/using-flistbox-additem/113436>\
**Category:** Uncategorized\
**Created:** [June 17, 2004, 9:25pm UTC](https://forum.kirupa.com/t/using-flistbox-additem/113436 "2004-06-17T21:25:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![steveb1164](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@steveb1164](https://forum.kirupa.com/u/steveb1164)\
**Post date:** [June 17, 2004, 9:25pm UTC](https://forum.kirupa.com/t/using-flistbox-additem/113436/1 "2004-06-17T21:25:28Z")

</div>

I have a listbox called “playerlist” on the stage. It is on Layer 4 called “Player List”. I click on the listbox on the stage and type the following into the actions panel:

onClipEvent (load) {  
playerlist.addItem(“Priest Holmes”);  
}

When I go to Test Movie, nothing appears in the list box. What am I doing wrong? Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 17, 2004, 9:58pm UTC](https://forum.kirupa.com/t/using-flistbox-additem/113436/2 "2004-06-17T21:58:40Z")

</div>

Just put

```auto

playerlist.addItem("Priest Holmes");

```

In the first frame, it’s a component, not a movieclip, I don’t think components can use clipEvents. I could be wrong though.
