Okay here is the set up: I have a little MC with 3 frames inside. There is a button that makes this MC appear and on the MC there are 3 buttons (MCs themselves), one to close the main MC, and previous and next button MCs to toggle between the 3 pages.

I don't want the previous button to appear on page 1 (obviously there isn't a page 0 to go to), and I don't want next to appear on page 3 (again, as there is no page 4 to go to). When I test my code (that took me about 3 hours to get to work) everything works the first time.

I had to put the previous button on frame 1 of the MC (page 1) and just move it off stage to get the other 2 instances (page2 and page3) to work. If previous button is not on page1 then none of the 3 instances work. This is minor. The major problem is that if you press next and back they work fine, however, if the MC gets to page3 and you press the back button all the way to page1, none of the buttons work anymore. The cursor doesn't even change to a hand.

How can I alter the code to allow for infinite back and forth's? I also noticed that the main MC stays on which ever page it is when it is closed, so if it is reopened it doesn't reset. I added code to set the main MC back to frame 1, which works. But I am not sure if this causes an issue with the button codes.

Code:
popUp._visible = false;
bottomBar.status = "Loading...";
this.bottomBar.instructions.onRelease = function() {
	trace("instructions was pressed");
	popUp._visible = true;
	grid_container._visible = false;
};
this.popUp.closeBtn.onRelease = function() {
	trace("close was pressed");
	popUp._visible = false;
	grid_container._visible = true;
	popUp.gotoAndStop("page1");
};
this.popUp.nextBtn.onRelease = function() {
	trace("next was pressed");
	popUp.nextFrame();
};
this.popUp.backBtn.onRelease = function() {
	trace("prev was pressed");
	popUp.prevFrame();
};
It is probably something simple, I just can't see it.

Thanks,

~MoN