# Go back button

**URL:** <https://forum.kirupa.com/t/go-back-button/257896>\
**Category:** flash\
**Created:** [April 18, 2008, 1:44am UTC](https://forum.kirupa.com/t/go-back-button/257896 "2008-04-18T01:44:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![utz119](https://avatars.discourse-cdn.com/v4/letter/u/22d042/32.png) [@utz119](https://forum.kirupa.com/u/utz119)\
**Post date:** [April 18, 2008, 1:44am UTC](https://forum.kirupa.com/t/go-back-button/257896/1 "2008-04-18T01:44:17Z")

</div>

Can someone help me what I’m doing wrong?  
I have this image gallery movie with background music.

I want to have “Go back” button that go back 5 frames each time someone click it.

This is the code I have but it doesn’t work.

on (release) {  
gotoAndStop(\_currentframe - 20);  
}

I use this code for “Go forward” and it works perfectly.

on (release) {  
gotoAndStop(\_currentframe + 20);  
}

I tried this code and “Go back” button works but the background music start splaying on each click.

on (release) {  
\_root.gotoAndPlay (\_root.\_currentframe - 1)  
}

I just want to go back 20 frames without disturbing the background music.  
Please help.
