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" )
You can listen to a click event at a higher priority so you know the true
target of the ITEM_CLICK that follows.