# Listbox: Add items in different colors

**URL:** <https://forum.kirupa.com/t/listbox-add-items-in-different-colors/176900>\
**Category:** flash\
**Created:** [January 27, 2006, 8:50pm UTC](https://forum.kirupa.com/t/listbox-add-items-in-different-colors/176900 "2006-01-27T20:50:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amanuo](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@amanuo](https://forum.kirupa.com/u/amanuo)\
**Post date:** [January 27, 2006, 8:50pm UTC](https://forum.kirupa.com/t/listbox-add-items-in-different-colors/176900/1 "2006-01-27T20:50:12Z")

</div>

Hi,  
I got a working way of adding items to a listbox, but i would really love to add pieces of text in different colors.  
Say, one button adds ‘[COLOR=Blue]you clicked the blue button[/COLOR]’, and the other adds ‘[COLOR=Red]you clicked the red button[/COLOR]’.

Is this possible?

My current code:  
[COLOR=DimGray]on(release){  
history.addItemAt(0, “boring black text”);  
}  
[/COLOR]
