Answered
Syntax error: expecting rightbrace before end of program.
I'm getting the error in the header inside this function
import flash.system.fscommand;
import flash.events.MouseEvent;
restartBtn.addEventListener(MouseEvent.CLICK, restartGame);
quitBtn.addEventListener(MouseEvent.CLICK, exitGame);
function restartGame(event:MouseEvent):void {
MovieClip(root).deathScreen.x = 1000;
MovieClip(root).deathScreen.y = 0;
MovieClip(root).restartBtn.x = 1000;
MovieClip(root).restartBtn.y = 0;
MovieClip(root).quitBtn.x = 1000;
MovieClip(root).quitBtn.y = 0;
MovieClip(this.root).gotoAndPlay(1, "Scene 1");
}
function exitGame(event:MouseEvent):void {
fscommand("quit");
System.exit(0);
}
to my knowledge nothing was changed since last working copy, any insight would be helpful
