Basic Navigation Problem

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.

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

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

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.

Thanx man. Itz all good now. =)