# Coloured backgrounds within a Combo Box

**URL:** <https://forum.kirupa.com/t/coloured-backgrounds-within-a-combo-box/311315>\
**Category:** Uncategorized\
**Created:** [July 2, 2010, 3:43pm UTC](https://forum.kirupa.com/t/coloured-backgrounds-within-a-combo-box/311315 "2010-07-02T15:43:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilpster](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@gilpster](https://forum.kirupa.com/u/gilpster)\
**Post date:** [July 2, 2010, 3:43pm UTC](https://forum.kirupa.com/t/coloured-backgrounds-within-a-combo-box/311315/1 "2010-07-02T15:43:21Z")

</div>

Hi everyone,

I’ve successfully created a class which extends List to create a List with different coloured backgrounds depending on a colour property of the ArrayCollection used as a dataProvider. Technique is described here:

[http://www.barneyb.com/barneyblog/2007/06/22/listcombobox-row-backgrounds-in-flex/](http://www.barneyb.com/barneyblog/2007/06/22/listcombobox-row-backgrounds-in-flex/)

I’m now trying to do the same thing in a ComboBox. I know it’s possible with either a classFactory or extending the ComboBox but I really can’t work out how - there is so little information on things like the classFactory around.

Could anyone point me in the right direction?

thanks,

Kenneth
