How to make multiple instances of the same button?

I’m working on a simple rotation of some parts, I’m making mouseover regions for each position that the parts are in and the shape of these regions are completely different in each frame. I was wondering if there was a way to make all these separate regions on separate frames act as one button instead of making 25 separate buttons to do the same thing?