--- In [email protected], "Amy" <[EMAIL PROTECTED]> wrote:
>
> Hi, all;
> 
> I'm trying to style a custom item renderer.  I've called 
> it "TestRenderer."  It's basically a canvas with a label in it.  
This 
> is the style declaration:
> 
> TestRenderer{
>               backgroundColor: #FF0000;
>               backgroundAlpha:0;
>               fontSize: 16;
>       }
> 
> This is the mxml declaration:
> 
>       <mx:List id="weekList" width="200"  
> rowCount="{weekList.dataProvider.length}" 
> itemRenderer="com.magnoliamultimedia.views.TestRenderer" 
> minWidth="0"/>
> 
> I am expecting to see an item renderer with an ugly bright red 
> background.  Instead, I see no background.  The font size _does_ 
> change, though.
> 
> Can anyone give me a clue as to why my component style isn't 
changing?

OK, I tried just sticking my TestRenderer component in the 
Application file somewhere other than as an itemRenderer, and that 
shows the red background (when the alpha is set to 1).  So the 
problem seems to be related to using the styled component as an 
itemRenderer.  Is there something special that the List component is 
doing to its renderers that is preventing them from using the alpha 
and color I've set in my CSS?

Thanks;

Amy

Reply via email to