# Flex - Custom List Renderer Question

**URL:** <https://forum.kirupa.com/t/flex-custom-list-renderer-question/257827>\
**Category:** flash\
**Created:** [April 17, 2008, 2:39pm UTC](https://forum.kirupa.com/t/flex-custom-list-renderer-question/257827 "2008-04-17T14:39:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dewey](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dewey](https://forum.kirupa.com/u/dewey)\
**Post date:** [April 17, 2008, 2:39pm UTC](https://forum.kirupa.com/t/flex-custom-list-renderer-question/257827/1 "2008-04-17T14:39:40Z")

</div>

Hey Everyone,

I know my AS3 pretty well and I’ve been getting into Flex a bit here lately but I am totally stumped as to how the heck this works… I have a custom component…

```auto

<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" width="325" height="65" horizontalGap="10" 
    verticalGap="0" paddingLeft="10" paddingTop="5" paddingRight="10" horizontalScrollPolicy="off"
    verticalScrollPolicy="off">
       <mx:SWFLoader height="55" width="70" source="{data.image}"/>
       <mx:Text text="{data.title}" width="225" height="55" selectable="false" />    
</mx:HBox> 

```

Very simple… then I have this inside my main MXML file…

```auto

<mx:List id="myList" width="325" height="200" 
        click="_loadURL(event)" dataProvider="{_dataProvider}" itemRenderer="components.ListImageItem" 
            fontSize="{_fontSize}" fontFamily="{_font}" color="{_fontColor}" 
            backgroundColor="{_bgColor}" selectionColor="{_selectionColor}" textSelectedColor="{_selectedTextColor}" rollOverColor="{_hoverText}" />

```

My data goes through all fine and dandy, however, the “rollover” and “selected” text colors do not work at all. I am pretty sure this is because I am using a custom component and I am using an “mx:Text” element which allows my text to wrap… but I can’t get the text colors to change accordingly!

Can anyone help me out here?

Thanks!

–d
