I just put an example of Image renderers on my blog: http://blogs.adobe.com/aharui/2007/04/more_thinking_about_item_rende.htm l
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Thursday, April 05, 2007 7:48 PM To: [email protected] Subject: [flexcoders] SOLVED: Image Item Renderer in ActionScript for DataGrid 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] <mailto:flexcoders%40yahoogroups.com> , "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/ <http://blogs.adobe.com/aharui/> ). It's excellent > information, but none of the examples deal with image assets. > > Thanks, > > Paul >

