Controlling timeline from button name

Hi,

I have a huge timeline with photos, each photo on a different frame, and several buttons, one for each picture on the first frame.

My idea is to make a unique action for the buttons that tells the timeline to go to the frame number that is the same as the button instance name.

How to do that?

something like this?