# Prob with simple Actionscr

**URL:** <https://forum.kirupa.com/t/prob-with-simple-actionscr/162547>\
**Category:** flash\
**Created:** [September 14, 2005, 9:35am UTC](https://forum.kirupa.com/t/prob-with-simple-actionscr/162547 "2005-09-14T09:35:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![viktig](https://avatars.discourse-cdn.com/v4/letter/v/eb9ed0/32.png) [@viktig](https://forum.kirupa.com/u/viktig)\
**Post date:** [September 14, 2005, 9:35am UTC](https://forum.kirupa.com/t/prob-with-simple-actionscr/162547/1 "2005-09-14T09:35:50Z")

</div>

Hi everyone!  
I’m trying to make a simple actionscript for a button. The function I want is for the button is to play 15 frames in the current scene (2-16), then stop, and then go to another scene (Scene 2) and start to play a frame there (frame 10).

I have included the two actions which I need to function as one:

on (release) {  
gotoAndPlay(2);  
}

on (release) {  
gotoAndStop(“Scene 2”, 10);  
}

Any suggestions are appreciated!

Oy
