Button instances with same code

Hi everybody!
i need some help on the following:

i want all of my buttons to have an identical code and being able to tell my variable on _root to get the instance name of the clicked button. that possible?

thanx for your hints…

cheers, instantjesus