If statements

I have three buttons:
each one changes a variable to a name: one, two and three and plays the movie.

when the movie gets to frame 100, it should get the variable and play the label with the same name of the button…

How should be the AS of this frame so it plays to the correct label?

thanks