# Basic Navigation Problem

**URL:** https://forum.kirupa.com/t/basic-navigation-problem/124126
**Category:** Uncategorized
**Created:** [September 30, 2004, 7:48am UTC](https://forum.kirupa.com/t/basic-navigation-problem/124126 "2004-09-30T07:48:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tensaislim](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tensaislim/32/785_2.png) [@tensaislim](https://forum.kirupa.com/u/tensaislim)
#### Post date: [September 30, 2004, 7:48am UTC](https://forum.kirupa.com/t/basic-navigation-problem/124126/1 "2004-09-30T07:48:31Z")

</div>

For example. I have four buttons 2 link 2 itz own page. Problem at the moment is that:

1. I can’t return to the home page
2. If i click the last page twice, it returns to the home page

Here is the sample code:

stop();  
btn1.onRelease = function () {  
gotoAndPlay(1);  
};  
btn2.onRelease = function () {  
gotoAndPlay(10);  
};  
btn3.onRelease = function () {  
gotoAndPlay(20);  
};  
btn4.onRelease = function () {  
gotoAndPlay(30);  
};

I have this code for each frame the buttons is on.  
Thanx. ![](http://forum.kirupa.com/uploads/kirupa/798/c985a958819d8917.gif)
