Button with multiple functions

hi guys, ive only started to use flash not so long ago for school so ive a question.

i was wondering if its possible to have more than one function on a button, however the functions have to work one after another. for example if i want the button to play the rest of the frames in “scene 1” and after playing all the frames in “scene 1” i want it to gotoandplay “scene 3”.

i tried:

on (release) {
play();
gotoAndPlay(“scene 3”, 1);
}

but it didnt work lol

thanks in advance