# Button with multiple functions

**URL:** <https://forum.kirupa.com/t/button-with-multiple-functions/240415>\
**Category:** Uncategorized\
**Created:** [October 2, 2007, 7:40pm UTC](https://forum.kirupa.com/t/button-with-multiple-functions/240415 "2007-10-02T19:40:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KrazyKenny](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@KrazyKenny](https://forum.kirupa.com/u/KrazyKenny)\
**Post date:** [October 2, 2007, 7:40pm UTC](https://forum.kirupa.com/t/button-with-multiple-functions/240415/1 "2007-10-02T19:40:56Z")

</div>

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
