Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

syntax error 1158: missing left brace({) before the function body as3

New Here ,
Nov 19, 2012 Nov 19, 2012

hey guys  PLEASE help ME i have looked everywhere and can't find a thing on how to fix it

stop();

btnHelp.addEventListener(MouseEvent.CLICK, GoToScene2);

btnMap.addEventListener(MouseEvent.CLICK, GoToScene3a);

function GoToScene2(event)GoToScene3a(event){

gotoAndPlay("meow")

}

{

gotoAndPlay(1,"Scene 3a")

}

TOPICS
ActionScript
1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 19, 2012 Nov 19, 2012
LATEST

You have two functions mashed together...

     function GoToScene2(event)GoToScene3a(event){

          gotoAndPlay("meow")

     }

     {

          gotoAndPlay(1,"Scene 3a")

     }

should be....

    

     function GoToScene2(event:MouseEvent):void  {

          gotoAndPlay("meow")

     }

     function GoToScene3a(event:MouseEvent):void  {

          gotoAndPlay(1,"Scene 3a")

     }

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines