# Making the slide menu a gotoandplay button?

**URL:** <https://forum.kirupa.com/t/making-the-slide-menu-a-gotoandplay-button/22353>\
**Category:** Uncategorized\
**Created:** [June 3, 2003, 5:47am UTC](https://forum.kirupa.com/t/making-the-slide-menu-a-gotoandplay-button/22353 "2003-06-03T05:47:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pares101](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@pares101](https://forum.kirupa.com/u/pares101)\
**Post date:** [June 3, 2003, 5:47am UTC](https://forum.kirupa.com/t/making-the-slide-menu-a-gotoandplay-button/22353/1 "2003-06-03T05:47:26Z")

</div>

well for you who know the code i went into the scroller and put this code which isnt working

this is from the SLIDE MENU tutorial posted on kirupa … ive done everything right now i want the button that makes the drag also to goto a frame number! how can i go on doing so?

//sets the destination  
on (press) {  
\_root.xnew = \_root.mask2.\_x+(4-1)\*1117/2;  
}  
on (release) {  
gotoAndPlay(54);  
}

am i doing it the right way or what?? heeelp!:battery:

---

<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:** [June 3, 2003, 5:51am UTC](https://forum.kirupa.com/t/making-the-slide-menu-a-gotoandplay-button/22353/2 "2003-06-03T05:51:24Z")

</div>

You need to specify which timeline otherwise it will think you mean the current timeline. And I am sure frame 54 doesn’t exist within your menus timeline, but probably the main timeline.

You can probably use \_parent.gotoAndPlay(54) and it will work.

---

<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:** [June 3, 2003, 5:53am UTC](https://forum.kirupa.com/t/making-the-slide-menu-a-gotoandplay-button/22353/3 "2003-06-03T05:53:47Z")

</div>

ahhhh thank you very much…

the mysteries of actionscript once again solved!
