# Goto Help

**URL:** <https://forum.kirupa.com/t/goto-help/64272>\
**Category:** flash\
**Created:** [September 14, 2004, 6:35pm UTC](https://forum.kirupa.com/t/goto-help/64272 "2004-09-14T18:35:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![petro](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@petro](https://forum.kirupa.com/u/petro)\
**Post date:** [September 14, 2004, 6:35pm UTC](https://forum.kirupa.com/t/goto-help/64272/1 "2004-09-14T18:35:58Z")

</div>

I need some basic help…just started using Flash…so I have the following code as an actionscript attached to a button that has a slider like the one in the tutorials…problem is how do I make the onPress goto a different frame in my scene??

button\_1.onPress = [color=red]function()[/color] {  
xMove = button\_1.\_y;  
};

Any help would be appreciated.

THX

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 11:05am UTC](https://forum.kirupa.com/t/goto-help/64272/2 "2004-09-15T11:05:21Z")

</div>

Hi

Here is the script:

button1.onPress = function() {  
xMove = button\_1.\_y;  
gotoAndPlay(“Scene2”, 1); // instead of 1 u can also specify label name  
//gotoAndPlay(“Scene2”, “labelName”);  
};

* * *

aShIsH

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 3:55pm UTC](https://forum.kirupa.com/t/goto-help/64272/3 "2004-09-15T15:55:23Z")

</div>

Thanks…I will try that.
