Button problems: Hitting my Back Button Once Stops my Project Completely
Good morning, afternoon, and evening to you all!
The issue that I'm having seems silly. Please bear with me.
I have simple gotoAndStop(); buttons on this project I'm working on. On my title page, I have three of them, and on the pages corresponding to those buttons, I have but one button each; that's my back button, which is a simple gotoAndStop(1); button that executes when clicked. However, when I click on either one of my back buttons, the rest of my buttons simply stop working. Do I need to add my event listeners again?
My code:
public function main()
{
start_btn.addEventListener(MouseEvent.CLICK, clicker);
controlbtn.addEventListener(MouseEvent.CLICK, ctrls);
creditbtn.addEventListener(MouseEvent.CLICK, credit);
bacnbtn.addEventListener(MouseEvent.CLICK, back);
}
function ctrls(e:MouseEvent)
{
gotoAndStop(10);
}
function credit(e:MouseEvent)
{
gotoAndStop(9);
}
function clicker(e:MouseEvent)
{
gotoAndStop(2);
StartLevel();
}
function back(e:MouseEvent)
{
gotoAndStop(1);
}
Help? I need this fixed TODAY ASAP. Please.
