# Problem with action script on buttons

**URL:** <https://forum.kirupa.com/t/problem-with-action-script-on-buttons/162381>\
**Category:** Uncategorized\
**Created:** [September 12, 2005, 6:38pm UTC](https://forum.kirupa.com/t/problem-with-action-script-on-buttons/162381 "2005-09-12T18:38:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DKusz](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@DKusz](https://forum.kirupa.com/u/DKusz)\
**Post date:** [September 12, 2005, 6:38pm UTC](https://forum.kirupa.com/t/problem-with-action-script-on-buttons/162381/1 "2005-09-12T18:38:41Z")

</div>

I think that im coding this correctly, but I have 7 buttons on my scene, and when you click the button I want it to jump to the scene that its assigned too, I.E. button 1 should go to scene 3, button 2 should to go scene 4, and so on, Here is the action script im using for each button:

Button 1: on (release){gotoAndPlay(“3,1”);  
{  
}}

Button 2: on (release){gotoAndPlay(“4,1”);  
{  
}}

and so on…
