# Change a specific item in a list component

**URL:** <https://forum.kirupa.com/t/change-a-specific-item-in-a-list-component/289904>\
**Category:** Uncategorized\
**Created:** [June 6, 2009, 5:58pm UTC](https://forum.kirupa.com/t/change-a-specific-item-in-a-list-component/289904 "2009-06-06T17:58:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![garret](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@garret](https://forum.kirupa.com/u/garret)\
**Post date:** [June 6, 2009, 5:58pm UTC](https://forum.kirupa.com/t/change-a-specific-item-in-a-list-component/289904/1 "2009-06-06T17:58:04Z")

</div>

\*\*Hi guys, I need some help with something, PLEASE

I want to change only a specific item in a list component.  
I have my list build:\*\*

mylist.addItem({label:“project\_01”, project:“projects/projects/project\_01.swf”, preview:“project\_01.jpg”, data:“001”});

mylist.addItem({label:“project\_02”, project:“projects/projects/project\_02.swf”, preview:“project\_02.jpg”, data:“002”});

mylist.addItem({label:“project\_03”, project:“projects/projects/project\_03.swf”, preview:“project\_03.jpg”, data:“003”});

\*\*and so on…

I would like to know how can I make reference to the number of the “data” in the code bellow to change the background and the color of the text, for example, of the _ **data:"001"** _  
\*\*

mylist.setStyle(“backgroundColor”,0xFFFFFF);  
mylist.setStyle(“selectionColor”,0xFFFFFF);

\*\*Please, I need some help on this,  
Thanks \*\*
