You certainly could put the listener there but that would cause a number of disadvantages. It would make for a less clear separation of duties because your renderer class would then contain logic as well. In the context of a large application you definitely would not want to be setting data and performing similar actions in a multitude of different places like that either as it would make maintenance and troubleshooting a nightmare. It would also make your renderer far less generic/reusable.
In a real application the listener wouldn't be at the Application root but in an appropriately high-level view, such as a screen/page/form. HTH, Ben --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: > > On Sat, Dec 29, 2007 at 02:29:18PM -0000, ben.clinkinbeard wrote: > > > An example of this approach can be seen here: > > http://www.returnundefined.com/files/CheckBoxRenderers/srcview/index.html > > That is using a click event but the principle is identical. > > In this example, why is the event listener added to the Application instead of to the CenteredCheckBoxHeaderRenderer? Then you wouldn't have to > check the event target. > > > -Jeff >