flexcoders  

[flexcoders] Re: Styling AdvancedDataGridItemRenderer

Amy
Wed, 25 Jun 2008 18:57:50 -0700

--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> I'm trying to extend AdvancedDataGridItemRenderer to allow the 
> styleFunction to set both the backgroundColor and the alpha of the 
> item in.  I've used a combination of the custom style example in 
the 
> docs and the example here 
http://flexpearls.blogspot.com/2008/02/row-
> background-color-in.html.  The problem I'm having is that it 
doesn't 
> matter what you set the alpha property to, it doesn't affect the 
> visual appearance of the component.
> 
> I tried using the graphics object to draw the box, but it seems 
like 
> the base component doesn't support this.  If anyone has any ideas, 
> please share.

OK, I think if I could somehow add a sprite to the component, I could 
make this work, but instead of addChild, it has AddChild, which shows 
three arguments in code hinting but throws a compiler error if I give 
it more than one.  If I give it a sprite as the one argument, it 
gives me a runtime error.

I can't look to see where it is drawing the background in, because 
that's in one of the Flash classes.  It doesn't look like those are 
included in the source that comes with FB3.

Anyone?  Anyone?  Buehler?