PrimaryFeather/Starling-Framework — pull request #221 by FrancescoMaisto (2012-11-27 14:03:31+00:00)
Title: Replacing multiple eventListeners with one

Hi!
I am proposing a small optimization change to the demo source where instead of adding an eventListener to each button of the main menu, only one eventListener is added to the 'Game.as' constructor. Also I am adding a condition to the onButtonTriggered method to deal with events generated by the back button in the 'Scene.as' class. This also allows to simplify the 'Scene.as' class, by removing its own onBackButtonTriggered method.
Hope it helps,
Cheers.