PDA

View Full Version : [AS3] Dispatching an event from an rendered item in a TileList


dlusignan
06-28-2007, 06:47 PM
Here's the case!

I have a renderer components with a button. I render it within the TileList itemRender properties.

Is there anybody who know how to catch the event without using the itemClick or any other event from the TileList?

Is there a onRenderingEvent that a can use to add an event listener on the button at creation time?

dr_zeus
06-28-2007, 09:43 PM
This might be a case where you should consider creating a custom item renderer for your TileList. You might be able to handle the event in your custom renderer, or you could dispatch a custom event that bubbles so that external listeners can catch it directly from the TileList.