1 Reply Latest reply on Feb 6, 2010 10:52 PM by Flex harUI

    Tilelist event routing.

    UbuntuPenguin Level 4

      TL;DR How do I differentiate between itemrenderer clicks and itemerenderer subcomponent clicks in a tilelist

      Hello Everyone ,

        I have a question that is beginning to nag me.  Here goes ... Let's say you have a tilelist with an itemrenderer.  It is easy enough to say what happens when it is clicked.  Here is the kicker ,lets say your itemerenderer has buttons , or labels.  When clicked you want to know if it was a button or a label or the itemrenderer in general.  Is there anyway to do this as opposed to the "if( event.currentTarget is Button )" or even worse " if(event.target is Button || event.target is UITextField || event.target is VBox))" if(event.target.id == "buttonOnItemRenderer" )


      Sincerely ,