Back when I started coding in AS3 for Flash, I would create a separate event handler for each button. After a few revisions on these projects, I quickly realized that this was completely impractical. I found a far easier solution by creating a single onclick handler function for all the buttons, and switch based on the name of the button. Now, I share it with you.