Detect any Button press

Hi there.

Can someone helpme on this.

i have 10 buttons on stage. bt01,bt02,bt03…
for every button in my code i have bt01.onPress = function()
all buttons call the same function: animation(this);

How can i detect any button pressed? i dont want to use bt01.onPress. etc etc. etc… they are not Dynamic.

something like buttons.prototype.onPressed = function(){animation(this)}

or a for…i tryied for but it only work with dynamic buttons.

help please :smiley: