# Simple on(press) code problem

**URL:** <https://forum.kirupa.com/t/simple-on-press-code-problem/268035>\
**Category:** Uncategorized\
**Created:** [August 8, 2008, 2:08pm UTC](https://forum.kirupa.com/t/simple-on-press-code-problem/268035 "2008-08-08T14:08:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Natdesign](https://avatars.discourse-cdn.com/v4/letter/n/bbe5ce/32.png) [@Natdesign](https://forum.kirupa.com/u/Natdesign)\
**Post date:** [August 8, 2008, 2:08pm UTC](https://forum.kirupa.com/t/simple-on-press-code-problem/268035/1 "2008-08-08T14:08:41Z")

</div>

I have set up one button using

on(press){  
gotoAndPlay(“home”);  
}

which works then I have a stop(); code on the button frame

I’ve set the next button

on(press){  
gotoAndPlay(“artists”);  
}

which doesnt work im wondering if it is the stop(); code

Ive left a screenshot of the timeline, its a bit messy but

Any help?
