4 Replies Latest reply on Sep 29, 2008 6:35 PM by SiHoop

    ItemRenderer and components

    SiHoop Level 1
      I have 2 questions about the code below that I'm using as an itemRenderer for a DataGridColumn in a datagrid. First, is it possible to write an event handler in my main mxml file that will allow me to respond to a mouse click when the user clicks on the graphic in the DataGridColumn? When I click on the graphic in the DataGridColumn, I'd like to modify the graphic (as if it were responding to a button click).

      Second, I'm trying to extend the class to something more sophisticated than a Canvas (I left the code for a Sprite in the file to illustrate what I'm trying to achieve), but I get error messages when I try a Sprite or UIContainer for my class extension and then use that as my itemRenderer. How can I use a class extension that is more sophisticated than a Canvas that will allow me to make something interactive that can be used as an itemRenderer.?