Wouldn't you know it -- I figured it out as soon as I posted.

I created a component that extends UIComponent and that implements
IListItemRenderer and everything seems to be working properly.

I'm still a little fuzzy on where things should be done in an
ItemRenderer (I'm doing almost everything -- including making addChild
calls -- in the data function). It seems to work regardless of whether
or not it's technically right :-)

Paul


--- In [email protected], "Paul Whitelock" <[EMAIL PROTECTED]> wrote:
>
> I need to draw a number of icons in one DataGrid column based on a
> "quantity" value and a "type" value in the data. The icons are
> embedded assets.
> 
> For the past few hours I've been trying to figure out how to write an
> Item Renderer in ActionScript to accomplish this task, but I'm not
> getting anywhere.
> 
> Does anyone know where I might find example ActionScript code for a
> DataGrid Item Renderer that draws an image in a DataGrid column? I'm
> specifically looking for an ActionScript solution, not MXML.
> 
> By the way, I took a look at Alex's blog entry regarding DataGrid Item
> Renderers (http://blogs.adobe.com/aharui/). It's excellent
> information, but none of the examples deal with image assets.
> 
> Thanks,
> 
> Paul
>


Reply via email to