Funny buttons

I had a button on a main timeline with the assigned action

on(press){
gotoAndPlay(“ABC”)
};

ABC is a frame label within the main timeline.

When I test it within the main timeline with simple button action enabled, it works.

However, when I test the movie(ctrl-Enter), when the button is pressed, it doesnt go to the frame ABC.

What’s wrong?