# Basic Navigation Problem

**URL:** https://forum.kirupa.com/t/basic-navigation-problem/65871
**Category:** flash
**Created:** [September 30, 2004, 7:48am UTC](https://forum.kirupa.com/t/basic-navigation-problem/65871 "2004-09-30T07:48:31Z")
**Posts on this page:** 5
**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/65871/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)

---

<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 30, 2004, 12:48pm UTC](https://forum.kirupa.com/t/basic-navigation-problem/65871/2 "2004-09-30T12:48:32Z")

</div>

Looks ok to me, maybe post your .fla file and someone will take a look at it.

---

<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: [October 1, 2004, 1:24am UTC](https://forum.kirupa.com/t/basic-navigation-problem/65871/3 "2004-10-01T01:24:27Z")

</div>

Hey. Thanx. Here is just a basic sample which has the same prob occuring:

---

<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: [October 1, 2004, 3:25am UTC](https://forum.kirupa.com/t/basic-navigation-problem/65871/4 "2004-10-01T03:25:00Z")

</div>

You don’t have an instance name on your home button on all of the frames. That was your problem. Also change your gotoAndPlay to gotoAndStop. That creates less problems.

---

<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: [October 1, 2004, 3:53am UTC](https://forum.kirupa.com/t/basic-navigation-problem/65871/5 "2004-10-01T03:53:52Z")

</div>

Thanx man. Itz all good now. =)
