3 Replies Latest reply on Sep 20, 2013 7:16 AM by leehartsell

    tempInit, Line 2, Column 14     1086: Syntax error: expecting semicolon before minus.

    leehartsell

      Hey! First time posting here, I am a student taking classes on flash. I use Flash CC and obviously AS3. I've got a project I am working on, and have encountered a very frustrating problem. I have emailed my teacher but I thought I would ask around the web as well.

      I get a compiler error saying:

        

        

      tempInit, Line 2, Column 14

      1086: Syntax error: expecting semicolon before minus.

       

      I have tried commenting out the entire script, and I still get the same error. The weird thing is there is nothing on line 2, column 14. Line two simply reads:

      stop();

       

      I've also considered that I had some symbols named after keywords or with illegal characters that could somehow be causing this issue. It turns out I did, so I changed all suspected items to more appropriate names. Yet even after I did this, the error persists. I cannot find any other explanation as to why this error occurs at this point, hence why I am turning to the internet.

       

      A notable factor here is that I have imported items from illustrator cs5, some of which had illustrator symbols included. These were the culprits with the first issue of illegal and keyword names; examples: "Mountain1-2" and "New Symbol"

       

      Many thanks,

      Lee

       

      I'll paste my code here:

       

       

      import flash.events.MouseEvent;

      stop();

      var Htraesea_mc:Htraesea = new Htraesea();

      /*Aisa*/

      var TheEverlands_btn:TheEverlands = new TheEverlands();

      var everlandsdesc_mc:everlandsdesc = new everlandsdesc();

      var TheClaruslands_btn:TheClaruslands = new TheClaruslands();

      var claurslandsdesc_mc:claurslandsdesc = new claurslandsdesc();

      var TheDwarvallisLands_btn:TheDwarvallisLands = new TheDwarvallisLands();

      var dwarvallisdesc_mc:dwarvallisdesc = new dwarvallisdesc();

      var TheGreyLands_btn:TheGreyLands = new TheGreyLands();

      var greylandsdesc_mc:greylandsdesc = new greylandsdesc();

      var TheLandsofGineder_btn:TheLandsofGineder = new TheLandsofGineder();

      var TheLandsofHumara_btn:TheLandsofHumara = new TheLandsofHumara();

      var humaradesc_mc:humaradesc = new humaradesc();

      var TheLandsofJurgious_btn:TheLandsofJurgious = new TheLandsofJurgious();

      var TheLandsofMiddterrus_btn:TheLandsofMiddterrus = new TheLandsofMiddterrus();

      var TheLandsofOtrannas_btn:TheLandsofOtrannas = new TheLandsofOtrannas();

      var TheLandsofWeshan_btn:TheLandsofWeshan = new TheLandsofWeshan();

      var TheLowerAltiorlands_btn:TheLowerAltiorlands = new TheLowerAltiorlands();

      var TheMiddaltiorlands_btn:TheMiddaltiorlands = new TheMiddaltiorlands();

      var TheStarkLands_btn:TheStarkLands = new TheStarkLands();

      var starklandsdesc_mc:starklandsdesc = new starklandsdesc();

      var TheUnderlands_btn:TheUnderlands = new TheUnderlands();

      var TheUpperAltiorlands_btn:TheUpperAltiorlands = new TheUpperAltiorlands();

      var TheViridilands_btn:TheViridilands = new TheViridilands();

      var TheWestlands_btn:TheWestlands = new TheWestlands();

      var westlandsdesc_mc:westlandsdesc = new westlandsdesc();

      var TheBroadlands_btn:TheBroadlands = new TheBroadlands();

      /*Acierma*/

      var TheBleaklands_btn:TheBleaklands = new TheBleaklands();

      var bleaklandsdesc_mc:bleaklandsdesc = new bleaklandsdesc();

      var TheConvullands_btn:TheConvullands = new TheConvullands();

      var TheInfractlands_btn:TheInfractlands = new TheInfractlands();

      var infractdesc_mc:infractdesc = new infractdesc();

      var TheLandsofFragmenus_btn:TheLandsofFragmenus = new TheLandsofFragmenus();

      var fragmenusdesc_mc:fragmenusdesc = new fragmenusdesc();

      var TheLandsofJunosto_btn:TheLandsofJunosto = new TheLandsofJunosto();

      var junostodesc_mc:junostodesc = new junostodesc();

      var TheLandsofMusttrupis_btn:TheLandsofMusttrupis = new TheLandsofMusttrupis();

      var TheLandsofRelinas_btn:TheLandsofRelinas = new TheLandsofRelinas();

      var TheLandsofSundara_btn:TheLandsofSundara = new TheLandsofSundara();

      var sundaradesc_mc:sundaradesc = new sundaradesc();

      var TheLaniatosLands_btn:TheLaniatosLands = new TheLaniatosLands();

      var TheRiftLands_btn:TheRiftLands = new TheRiftLands();

      var riftlandsdesc_mc:riftlandsdesc = new riftlandsdesc();

      var TheSardustLands_btn:TheSardustLands = new TheSardustLands();

      var TheSypelands_btn:TheSypelands = new TheSypelands();

      var sypelandsdesc_mc:sypelandsdesc = new sypelandsdesc();

      var TheTruntusLands_btn:TheTruntusLands = new TheTruntusLands();

      var TheUmorousLands_btn:TheUmorousLands = new TheUmorousLands();

      var TheVulnerosLands_btn:TheVulnerosLands = new TheVulnerosLands();

      /*Oceania*/

      var Unusra_btn:Unusra = new Unusra();

      var unusradesc_mc:unusradesc = new unusradesc();

      var Risura_btn:Risura = new Risura();

      var Jusurua_btn:Jusurua = new Jusurua();

      var Desura_btn:Desura = new Desura();

      var FrostPeakIsland_btn:FrostPeakIsland = new FrostPeakIsland();

      var frostpeakislanddesc_mc:frostpeakislanddesc = new frostpeakislanddesc();

      var Cornuia_btn:Cornuia = new Cornuia();

      var cornuiadesc_mc:cornuiadesc = new cornuiadesc();

      var Caligan_btn:Caligan = new Caligan();

      var Acitra_btn:Acitra = new Acitra();

      var acitradesc_mc:acitradesc = new acitradesc();

       

       

       

       

       

       

      Htraesea_mc.x = 0;

      Htraesea_mc.y = 0;

      /*Aisa*/

      TheEverlands_btn.x = 1088.60;

      TheEverlands_btn.y = 405.80;

      TheClaruslands_btn.x = 926.40;

      TheClaruslands_btn.y = 395.75;

      TheDwarvallisLands_btn.x = 593.05;

      TheDwarvallisLands_btn.y = 468.00;

      TheGreyLands_btn.x = 895.15;

      TheGreyLands_btn.y = 448.95;

      TheLandsofGineder_btn.x = 593.05;

      TheLandsofGineder_btn.y = 369.7;

      TheLandsofHumara_btn.x = 808.25;

      TheLandsofHumara_btn.y = 570.70;

      TheLandsofJurgious_btn.x = 542.30;

      TheLandsofJurgious_btn.y = 577.25;

      TheLandsofMiddterrus_btn.x = 686.95;

      TheLandsofMiddterrus_btn.y = 367.20;

      TheLandsofOtrannas_btn.x = 829.30;

      TheLandsofOtrannas_btn.y = 330.05;

      TheLandsofWeshan_btn.x = 739.75;

      TheLandsofWeshan_btn.y = 264.15;

      TheLowerAltiorlands_btn.x = 839.05;

      TheLowerAltiorlands_btn.y = 251.95;

      TheMiddaltiorlands_btn.x = 815.65;

      TheMiddaltiorlands_btn.y = 114.65;

      TheStarkLands_btn.x = 1055.25;

      TheStarkLands_btn.y = 501.05;

      TheUnderlands_btn.x = 593.05;

      TheUnderlands_btn.y = 699.80;

      TheUpperAltiorlands_btn.x = 950.10;

      TheUpperAltiorlands_btn.y = 114.65;

      TheViridilands_btn.x = 855.55;

      TheViridilands_btn.y = 652.30;

      TheWestlands_btn.x = 665.65;

      TheWestlands_btn.y = 227.35;

      TheBroadlands_btn.x = 795.3;

      TheBroadlands_btn.y = 414.5;

      /*Acierma*/

      TheBleaklands_btn.x = 297.95;

      TheBleaklands_btn.y = 429.45;

      TheConvullands_btn.x = 307.65;

      TheConvullands_btn.y = 209.6;

      TheInfractlands_btn.x = 178.4;

      TheInfractlands_btn.y = 218.05;

      TheLandsofFragmenus_btn. x = 162.40;

      TheLandsofFragmenus_btn.y = 376.45;

      TheLandsofJunosto_btn. x = 232.4;

      TheLandsofJunosto_btn.y = 762.20;

      TheLandsofMusttrupis_btn. x = 138.05;

      TheLandsofMusttrupis_btn.y = 524.45;

      TheLandsofRelinas_btn. x = 134.4;

      TheLandsofRelinas_btn.y = 472.45;

      TheLandsofSundara_btn.x = 178.4;

      TheLandsofSundara_btn.y = 588.50;

      TheLaniatosLands_btn.x = 284.15;

      TheLaniatosLands_btn.y = 316.80;

      TheRiftLands_btn.x = 272.1;

      TheRiftLands_btn.y = 536.15;

      TheSardustLands_btn.x=168.05;

      TheSardustLands_btn.y = 670.50;

      TheSypelands_btn.x = 261.4;

      TheSypelands_btn.y = 387.25;

      TheTruntusLands_btn.x = 380.1;

      TheTruntusLands_btn.y = 578.50;

      TheUmorousLands_btn.x = 316.45;

      TheUmorousLands_btn.y = 650.15;

      TheVulnerosLands_btn.x = 140.05;

      TheVulnerosLands_btn.y = 298.05;

      /*Oceania*/

      Acitra_btn.x = 422.60;

      Acitra_btn.y = 1.10;

      Caligan_btn.x = 18.15;

      Caligan_btn.y = 829.80;

      Cornuia_btn.x = 450.45;

      Cornuia_btn.y =832.20;

      FrostPeakIsland_btn.x = 898.45;

      FrostPeakIsland_btn.y = 79.50;

      Desura_btn.x = 959.35;

      Desura_btn.y = 835.55;

      Jusurua_btn.x = 966.60;

      Jusurua_btn.y = 822.15;

      Risura_btn.x = 1041.85;

      Risura_btn.y = 843.05;

      Unusra_btn.x = 715.95;

      Unusra_btn.y = 794.95;

      mainscroll_btn.x = 572.10;

      mainscroll_btn.y = 1012.25;

       

       

       

       

      addChild(Htraesea_mc);

      /*Aisa*/

      addChild(TheLandsofJurgious_btn);

      addChild(TheUnderlands_btn);

      addChild(TheLandsofMiddterrus_btn);

      addChild(TheDwarvallisLands_btn);

      addChild(TheLandsofGineder_btn);

      addChild(TheLandsofHumara_btn);

      addChild(TheViridilands_btn);

      addChild(TheBroadlands_btn);

      addChild(TheGreyLands_btn);

      addChild(TheClaruslands_btn);

      addChild(TheWestlands_btn);

      addChild(TheLandsofOtrannas_btn);

      addChild(TheStarkLands_btn);

      addChild(TheEverlands_btn);

      addChild(TheMiddaltiorlands_btn);

      addChild(TheUpperAltiorlands_btn);

      addChild(TheLowerAltiorlands_btn);

      addChild(TheLandsofWeshan_btn);

      /*Acierma*/

      addChild(TheInfractlands_btn);

      addChild(TheVulnerosLands_btn);

      addChild(TheLandsofFragmenus_btn);

      addChild(TheLandsofRelinas_btn);

      addChild(TheLandsofMusttrupis_btn);

      addChild(TheConvullands_btn);

      addChild(TheLaniatosLands_btn);

      addChild(TheSypelands_btn);

      addChild(TheBleaklands_btn);

      addChild(TheRiftLands_btn);

      addChild(TheLandsofSundara_btn);

      addChild(TheTruntusLands_btn);

      addChild(TheUmorousLands_btn);

      addChild(TheSardustLands_btn);

      addChild(TheLandsofJunosto_btn);

      /*Oceania*/

      addChild(Acitra_btn);

      addChild(Caligan_btn);

      addChild(Cornuia_btn);

      addChild(FrostPeakIsland_btn);

      addChild(Desura_btn);

      addChild(Jusurua_btn);

      addChild(Risura_btn);

      addChild(Unusra_btn);

       

       

      TheEverlands_btn.addEventListener(MouseEvent.CLICK,goeverlands);

      function goeverlands(evt:MouseEvent):void {

                everlandsdesc_mc.x = 309.9;

                everlandsdesc_mc.y = 554.95;

                addChild(everlandsdesc_mc);

      }

       

       

      everlandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme);

      function closeme(evt:MouseEvent):void {

                removeChild(everlandsdesc_mc);

      }

      TheBleaklands_btn.addEventListener(MouseEvent.CLICK,gobleaklands);

      function gobleaklands(evt:MouseEvent):void {

                bleaklandsdesc_mc.x = 309.9;

                bleaklandsdesc_mc.y = 554.95;

                addChild(bleaklandsdesc_mc);

      }

       

       

      bleaklandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme1);

      function closeme1(evt:MouseEvent):void {

                removeChild(bleaklandsdesc_mc);

      }

      Acitra_btn.addEventListener(MouseEvent.CLICK,goacitra);

      function goacitra(evt:MouseEvent):void {

                acitradesc_mc.x = 309.9;

                acitradesc_mc.y = 554.95;

                addChild(acitradesc_mc);

      }

       

       

      acitradesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme2);

      function closeme2(evt:MouseEvent):void {

                removeChild(acitradesc_mc);

      }

      TheClaruslands_btn.addEventListener(MouseEvent.CLICK, goclaruslands);

      function goclaruslands(evt:MouseEvent):void {

                claurslandsdesc_mc.x = 309.9;

                claurslandsdesc_mc.y = 554.95;

                addChild(claurslandsdesc_mc);

      }

       

       

      claurslandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme3);

      function closeme3(evt:MouseEvent):void {

                removeChild(claurslandsdesc_mc);

      }

       

       

      Cornuia_btn.addEventListener(MouseEvent.CLICK,gocornuia);

      function gocornuia(evt:MouseEvent):void {

                cornuiadesc_mc.x = 309.9;

                cornuiadesc_mc.y = 554.95;

                addChild(cornuiadesc_mc);

      }

       

       

      cornuiadesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme4);

      function closeme4(evt:MouseEvent):void {

                removeChild(cornuiadesc_mc);

      }

      TheDwarvallisLands_btn.addEventListener(MouseEvent.CLICK,godwarvallis);

      function godwarvallis(evt:MouseEvent):void {

                dwarvallisdesc_mc.x = 309.9;

                dwarvallisdesc_mc.y = 554.95;

                addChild(dwarvallisdesc_mc);

      }

       

       

      dwarvallisdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme5);

      function closeme5(evt:MouseEvent):void {

                removeChild(dwarvallisdesc_mc);

      }

      TheLandsofFragmenus_btn.addEventListener(MouseEvent.CLICK,gofragmenus);

      function gofragmenus(evt:MouseEvent):void {

                fragmenusdesc_mc.x = 309.9;

                fragmenusdesc_mc.y = 554.95;

                addChild(fragmenusdesc_mc);

      }

       

       

      fragmenusdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme6);

      function closeme6(evt:MouseEvent):void {

                removeChild(fragmenusdesc_mc);

      }

      FrostPeakIsland_btn.addEventListener(MouseEvent.CLICK, gofrostpeakisland);

      function gofrostpeakisland(evt:MouseEvent):void {

                frostpeakislanddesc_mc.x = 309.9;

                frostpeakislanddesc_mc.y = 554.95;

                addChild(frostpeakislanddesc_mc);

      }

       

       

      frostpeakislanddesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme7);

      function closeme7(evt:MouseEvent):void {

                removeChild(frostpeakislanddesc_mc);

      }

       

       

      TheLandsofHumara_btn.addEventListener(MouseEvent.CLICK,gohumara);

      function gohumara(evt:MouseEvent):void {

                humaradesc_mc.x = 309.9;

                humaradesc_mc.y = 554.95;

                addChild(humaradesc_mc);

      }

       

       

      humaradesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme8);

      function closeme8(evt:MouseEvent):void {

                removeChild(humaradesc_mc);

      }

       

       

      TheInfractlands_btn.addEventListener(MouseEvent.CLICK,goinfract);

      function goinfract(evt:MouseEvent):void {

                infractdesc_mc.x = 309.9;

                infractdesc_mc.y = 554.95;

                addChild(infractdesc_mc);

      }

       

       

      infractdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme9);

      function closeme9(evt:MouseEvent):void {

                removeChild(infractdesc_mc);

      }

       

       

      TheLandsofJunosto_btn.addEventListener(MouseEvent.CLICK,gojunosto);

      function gojunosto(evt:MouseEvent):void {

                junostodesc_mc.x = 309.9;

                junostodesc_mc.y = 554.95;

                addChild(junostodesc_mc);

      }

       

       

      junostodesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme10);

      function closeme10(evt:MouseEvent):void {

                removeChild(junostodesc_mc);

      }

       

       

      TheRiftLands_btn.addEventListener(MouseEvent.CLICK, goriftlands);

      function goriftlands(evt:MouseEvent):void {

                riftlandsdesc_mc.x = 309.9;

                riftlandsdesc_mc.y = 554.95;

                addChild(riftlandsdesc_mc);

      }

       

       

      riftlandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme11);

      function closeme11(evt:MouseEvent):void {

                removeChild(riftlandsdesc_mc);

      }

       

       

      TheStarkLands_btn.addEventListener(MouseEvent.CLICK,gostarklands);

      function gostarklands(evt:MouseEvent):void {

                starklandsdesc_mc.x = 309.9;

                starklandsdesc_mc.y = 554.95;

                addChild(starklandsdesc_mc);

      }

       

       

      starklandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme12);

      function closeme12(evt:MouseEvent):void {

                removeChild(starklandsdesc_mc);

      }

       

       

      TheLandsofSundara_btn.addEventListener(MouseEvent.CLICK,gosundara);

      function gosundara(evt:MouseEvent):void {

                sundaradesc_mc.x = 309.9;

                sundaradesc_mc.y = 554.95;

                addChild(sundaradesc_mc);

      }

       

       

      sundaradesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme13);

      function closeme13(evt:MouseEvent):void {

                removeChild(sundaradesc_mc);

      }

      TheSypelands_btn.addEventListener(MouseEvent.CLICK,gosypelands);

      function gosypelands(evt:MouseEvent):void {

                sypelandsdesc_mc.x = 309.9;

                sypelandsdesc_mc.y = 554.95;

                addChild(sypelandsdesc_mc);

      }

       

       

      sypelandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme14);

      function closeme14(evt:MouseEvent):void {

                removeChild(sypelandsdesc_mc);

      }

       

       

      Unusra_btn.addEventListener(MouseEvent.CLICK, gounusra);

      function gounusra(evt:MouseEvent):void {

                unusradesc_mc.x = 309.9;

                unusradesc_mc.y = 554.95;

                addChild(unusradesc_mc);

      }

       

       

      unusradesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme15);

      function closeme15(evt:MouseEvent):void {

                removeChild(unusradesc_mc);

      }

       

       

      TheWestlands_btn.addEventListener(MouseEvent.CLICK, gowestlands);

      function gowestlands(evt:MouseEvent):void {

                westlandsdesc_mc.x = 309.9;

                westlandsdesc_mc.y = 554.95;

                addChild(westlandsdesc_mc);

      }

       

       

      westlandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme16);

      function closeme16(evt:MouseEvent):void {

                removeChild(westlandsdesc_mc);

      }

       

       

      TheGreyLands_btn.addEventListener(MouseEvent.CLICK, gogreylands);

      function gogreylands(evt:MouseEvent):void {

                greylandsdesc_mc.x = 309.9;

                greylandsdesc_mc.y = 554.95;

                addChild(greylandsdesc_mc);

      }

       

       

      greylandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme17);

      function closeme17(evt:MouseEvent):void {

                removeChild(greylandsdesc_mc);

      }