1158 syntax error in flash as3 please help meeeee

2 posts

Flag Post

hey guys i am like super bad at this please helpme fix it

this is the error
Scene 2, Layer ‘Action script’, Frame 27, Line 4 1158:Syntax error: missing left brace ({) before the function body.

And this is my coding

stop();
btnHelp.addEventListener(MouseEvent.CLICK, GoToScene2);
btnMap.addEventListener(MouseEvent.CLICK, GoToScene3a);
function GoToScene2(event)GoToScene3a(event){
gotoAndPlay(“meow”)
}
{
gotoAndPlay(1,“Scene 3a”)
}

 
Flag Post

How on earth have you ended up with that as your code?…..anyways regardless i think what you are looking for is…

stop();

btnHelp.addEventListener(MouseEvent.CLICK, GoToScene2);
btnMap.addEventListener(MouseEventListener.CLICK, GoToScene3a);

function GoToScene2(event)
{
    gotoAndPlay("meow");
}

function GoToScene3a(event)
{
    gotoAndPlay(1, "Scene 3a");
}

I would recommend going over some beginner tutorials.