This really depends on your needs. Usually, I call dispatchEvent on the cell's listowner from within the, e.g.
<mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml" > <mx:Script> var listOwner:Object; var getCellIndex:Function; private function doMouseUp():Void { listOwner.dispatchEvent({type: "imageClick", itemIndex: getCellIndex().itemIndex, cellIndex: getCellIndex.cellIndex}) } </mx:Script> <mx:Image source="@Embed('waar_te_koop.gif')" mouseUp="doMouseUp()"/> </mx:VBox> You'l lof course have to add an eventlistener for the "imageClick" event tothe list this cell belongs to. The events itemIndex and cellIndex fields contain the according indices. Dirk. -----Original Message----- From: Sjors Pals [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 2:25 PM To: [email protected] Subject: [flexcoders] How to catch Clickevent in CustomCellrenderer of a datagrid? I have a Custom Cellrenderer, the Cell only contains a image. How can I catch the Click Event and whats the best way to determine which cell was clicked? This is my current code: <mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml" > <mx:Image id="waartekoop" source="@Embed('waar_te_koop.gif')" width="13" height="13" /> </mx:VBox> Greets, Sjors Pals Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

