Say I have many display objects that are buttons. Which is better?
1. Adding the same listener to each display object?
(This listener would be full of if-elseif statements to determine which display object evoked it and to carry out the corresponding action.)
2. Adding a unique listener to each display object?
(No if-elseif statements because each listener is alway evoked by the same display object. These listener just carry out their specific task.)