16 Replies Latest reply on Jun 8, 2011 9:51 AM by learner_doug

    Syntax Error:  Expecting semicolon before colon

    learner_doug Level 1

      Can't see were I made a mistake.  Perhaps another set of eyes may help.  I went over this many man times, but can't seem to see my error.  Thanks for your assistance.

       

       

       

       

       

        • 1. Re: Syntax Error:  Expecting semicolon before colon
          UbuntuPenguin Level 4

          Are you using a switch statement ? Is the colon in the wrong place ?

          Do you have something like this

           

          public function getSomething():Array; <------ superfluous semicolon

           

          Those are the syntactical errors that come to mind of the top of my head.

          • 2. Re: Syntax Error:  Expecting semicolon before colon
            pauland Level 4

            My crystal ball is a bit fuzzy today, so I can't see your code clearly.

             

            Did you leave off a semicolon at the end of the previous line?

            • 3. Re: Syntax Error:  Expecting semicolon before colon
              learner_doug Level 1

              No, I don't think so.  Here is the code if you have a minute.

              Thanks for your response.

               

              import flash.events.Event;

               

               

              var ow1Text:String = "1. Queue";

              var ow1toolTip:String = "-Order enters COMIT from the CTS Web Center\n-Assigned Staff queries COMIT Tracking for unassigned orders and assigns orders to an Order Writer";

              var ow2Text:String = "2. Reseasrch & Verify Order";

              var ow2toolTip:String = "";

              var ow3Text:String = "3. Weekly Converence Call";

              var ow3toolTip:String = "";

              var ow4Text:String = "4. Create Project/Service Order(s)";

              var ow4toolTip:String = "";

              var ow5Text:String = "5. Prepare Order Package";

              var ow5toolTip:String = "";

              var ow6Text:String = "6. Complete and Assign in COMIT Tracking";

              var ow6toolTip:String = "";

              var ow7Text:String: = "";

              var ow7toolTip:String = "";

              var ow8Text:String: = "";

              var ow8toolTip:String = "";

              var ow9Text:String: = "";

              var ow9toolTip:String = "";

              var ow10Text:String = "";

              var ow10toolTip:String = "";

              var ow11Text:String = "";

              var ow11toolTip:String = "";

              var ow12Text:String = "";

              var ow12toolTip:String = "";

              var ow13Text:String = "";

              var ow13toolTip:String = "";

              var ow14Text:String = "";

              var ow14oolTip:String = "";

              var ow15Text:String = "";

              var ow15toolTip:String = "";

              var ow16Text:String = "";

              var ow16toolTip:String = "";

              var ow17Text:String = "";

              var ow17toolTip:String = "";

              var ow18Text:String = "";

              var ow18toolTip:String = "";

              var ow19Text:String: = "";

              var ow19toolTip:String = "";

              var ow20Text:String = "20. Complete COMIT Tracking";

              var ow20toolTip:String = "";

              var ow21Text:String = "";

              var ow21toolTip:String = "";

              var ow22Text:String: = "";

              var ow22toolTip:String = "";

              var ow23Text:String = "";

              var ow23toolTip:String = "";

              var ow24Text:String = "";

              var ow24toolTip:String = "";

               

               

              //  Populate the TextAreas with text and tooltips

              public function addText(event:Event):void

              {

              ow1.text = ow1Text;

              ow1.toolTip = ow1toolTip;

              ow2.text = ow2Text;

              ow2.toolTip = ow1toolTip;

              ow3.text = ow3Text;

              ow3.toolTip = ow3toolTip;

              ow4.text = ow2Text;

              ow4.toolTip = ow1toolTip;

              ow5.text = ow2Text;

              ow5.toolTip = ow1toolTip;

              ow6.text = ow2Text;

              ow6.toolTip = ow1toolTip;

              ow7.text = ow2Text;

              ow7.toolTip = ow1toolTip;

              ow8.text = ow8Text;

              ow8.toolTip = ow8toolTip;

              ow9.text = ow9Text;

              ow9.toolTip = ow9toolTip;

              ow10.text = ow10Text;

              ow10.toolTip = ow10toolTip;

              ow11.text = ow11Text;

              ow11.toolTip = ow11toolTip;

              ow12.text = ow12Text;

              ow12.toolTip = ow12toolTip;

              ow13.text = ow13Text;

              ow13.toolTip = ow13toolTip;

              ow14.text = ow14Text;

              ow14.toolTip = ow14toolTip;

              ow15.text = ow15Text;

              ow15.toolTip = ow15toolTip;

              ow16.text = ow10Text;

              ow16.toolTip = ow16toolTip;

              ow17.text = ow10Text;

              ow17.toolTip = ow17toolTip;

              ow18.text = ow18Text;

              ow18.toolTip = ow18toolTip;

              ow19.text = ow19Text;

              ow19.toolTip = ow19toolTip;

              ow20.text = ow20Text;

              ow20.toolTip = ow20toolTip;

              ow21.text = ow21Text;

              ow21.toolTip = ow21toolTip;

              ow22.text = ow20Text;

              ow22.toolTip = ow22toolTip;

              ow23.text = ow23Text;

              ow23.toolTip = ow23toolTip;

              ow24.text = ow24Text;

              ow24.toolTip = ow24toolTip;

               

              }

              • 4. Re: Syntax Error:  Expecting semicolon before colon
                learner_doug Level 1

                Here is the code if you have a minute.

                Thank you for helping.

                 

                import flash.events.Event;

                 

                 

                var ow1Text:String = "1. Queue";

                var ow1toolTip:String = "-Order enters COMIT from the CTS Web Center\n-Assigned Staff queries COMIT Tracking for unassigned orders and assigns orders to an Order Writer";

                var ow2Text:String = "2. Reseasrch & Verify Order";

                var ow2toolTip:String = "";

                var ow3Text:String = "3. Weekly Converence Call";

                var ow3toolTip:String = "";

                var ow4Text:String = "4. Create Project/Service Order(s)";

                var ow4toolTip:String = "";

                var ow5Text:String = "5. Prepare Order Package";

                var ow5toolTip:String = "";

                var ow6Text:String = "6. Complete and Assign in COMIT Tracking";

                var ow6toolTip:String = "";

                var ow7Text:String: = "";

                var ow7toolTip:String = "";

                var ow8Text:String: = "";

                var ow8toolTip:String = "";

                var ow9Text:String: = "";

                var ow9toolTip:String = "";

                var ow10Text:String = "";

                var ow10toolTip:String = "";

                var ow11Text:String = "";

                var ow11toolTip:String = "";

                var ow12Text:String = "";

                var ow12toolTip:String = "";

                var ow13Text:String = "";

                var ow13toolTip:String = "";

                var ow14Text:String = "";

                var ow14oolTip:String = "";

                var ow15Text:String = "";

                var ow15toolTip:String = "";

                var ow16Text:String = "";

                var ow16toolTip:String = "";

                var ow17Text:String = "";

                var ow17toolTip:String = "";

                var ow18Text:String = "";

                var ow18toolTip:String = "";

                var ow19Text:String: = "";

                var ow19toolTip:String = "";

                var ow20Text:String = "20. Complete COMIT Tracking";

                var ow20toolTip:String = "";

                var ow21Text:String = "";

                var ow21toolTip:String = "";

                var ow22Text:String: = "";

                var ow22toolTip:String = "";

                var ow23Text:String = "";

                var ow23toolTip:String = "";

                var ow24Text:String = "";

                var ow24toolTip:String = "";

                 

                 

                //  Populate the TextAreas with text and tooltips

                public function addText(event:Event):void

                {

                ow1.text = ow1Text;

                ow1.toolTip = ow1toolTip;

                ow2.text = ow2Text;

                ow2.toolTip = ow1toolTip;

                ow3.text = ow3Text;

                ow3.toolTip = ow3toolTip;

                ow4.text = ow2Text;

                ow4.toolTip = ow1toolTip;

                ow5.text = ow2Text;

                ow5.toolTip = ow1toolTip;

                ow6.text = ow2Text;

                ow6.toolTip = ow1toolTip;

                ow7.text = ow2Text;

                ow7.toolTip = ow1toolTip;

                ow8.text = ow8Text;

                ow8.toolTip = ow8toolTip;

                ow9.text = ow9Text;

                ow9.toolTip = ow9toolTip;

                ow10.text = ow10Text;

                ow10.toolTip = ow10toolTip;

                ow11.text = ow11Text;

                ow11.toolTip = ow11toolTip;

                ow12.text = ow12Text;

                ow12.toolTip = ow12toolTip;

                ow13.text = ow13Text;

                ow13.toolTip = ow13toolTip;

                ow14.text = ow14Text;

                ow14.toolTip = ow14toolTip;

                ow15.text = ow15Text;

                ow15.toolTip = ow15toolTip;

                ow16.text = ow10Text;

                ow16.toolTip = ow16toolTip;

                ow17.text = ow10Text;

                ow17.toolTip = ow17toolTip;

                ow18.text = ow18Text;

                ow18.toolTip = ow18toolTip;

                ow19.text = ow19Text;

                ow19.toolTip = ow19toolTip;

                ow20.text = ow20Text;

                ow20.toolTip = ow20toolTip;

                ow21.text = ow21Text;

                ow21.toolTip = ow21toolTip;

                ow22.text = ow20Text;

                ow22.toolTip = ow22toolTip;

                ow23.text = ow23Text;

                ow23.toolTip = ow23toolTip;

                ow24.text = ow24Text;

                ow24.toolTip = ow24toolTip;

                 

                }

                • 5. Re: Syntax Error:  Expecting semicolon before colon
                  UbuntuPenguin Level 4

                  Where is the line it is complaining about ?


                  1 person found this helpful
                  • 6. Re: Syntax Error:  Expecting semicolon before colon
                    learner_doug Level 1

                    See in red below.  All generating the same error.

                     

                    import flash.events.Event;

                     

                     

                    var ow1Text:String = "1. Queue";

                    var ow1toolTip:String = "-Order enters COMIT from the CTS Web Center\n-Assigned Staff queries COMIT Tracking for unassigned orders and assigns orders to an Order Writer";

                    var ow2Text:String = "2. Reseasrch & Verify Order";

                    var ow2toolTip:String = "";

                    var ow3Text:String = "3. Weekly Converence Call";

                    var ow3toolTip:String = "";

                    var ow4Text:String = "4. Create Project/Service Order(s)";

                    var ow4toolTip:String = "";

                    var ow5Text:String = "5. Prepare Order Package";

                    var ow5toolTip:String = "";

                    var ow6Text:String = "6. Complete and Assign in COMIT Tracking";

                    var ow6toolTip:String = "";

                    var ow7Text:String: = "";

                    var ow7toolTip:String = "";

                    var ow8Text:String: = "";

                    var ow8toolTip:String = "";

                    var ow9Text:String: = "";

                    var ow9toolTip:String = "";

                    var ow10Text:String = "";

                    var ow10toolTip:String = "";

                    var ow11Text:String = "";

                    var ow11toolTip:String = "";

                    var ow12Text:String = "";

                    var ow12toolTip:String = "";

                    var ow13Text:String = "";

                    var ow13toolTip:String = "";

                    var ow14Text:String = "";

                    var ow14oolTip:String = "";

                    var ow15Text:String = "";

                    var ow15toolTip:String = "";

                    var ow16Text:String = "";

                    var ow16toolTip:String = "";

                    var ow17Text:String = "";

                    var ow17toolTip:String = "";

                    var ow18Text:String = "";

                    var ow18toolTip:String = "";

                    var ow19Text:String: = "";

                    var ow19toolTip:String = "";

                    var ow20Text:String = "20. Complete COMIT Tracking";

                    var ow20toolTip:String = "";

                    var ow21Text:String = "";

                    var ow21toolTip:String = "";

                    var ow22Text:String: = "";

                    var ow22toolTip:String = "";

                    var ow23Text:String = "";

                    var ow23toolTip:String = "";

                    var ow24Text:String = "";

                    var ow24toolTip:String = "";

                     

                     

                    //  Populate the TextAreas with text and tooltips

                    public function addText(event:Event):void

                    {

                    ow1.text = ow1Text;

                    ow1.toolTip = ow1toolTip;

                    ow2.text = ow2Text;

                    ow2.toolTip = ow1toolTip;

                    ow3.text = ow3Text;

                    ow3.toolTip = ow3toolTip;

                    ow4.text = ow2Text;

                    ow4.toolTip = ow1toolTip;

                    ow5.text = ow2Text;

                    ow5.toolTip = ow1toolTip;

                    ow6.text = ow2Text;

                    ow6.toolTip = ow1toolTip;

                    ow7.text = ow2Text;

                    ow7.toolTip = ow1toolTip;

                    ow8.text = ow8Text;

                    ow8.toolTip = ow8toolTip;

                    ow9.text = ow9Text;

                    ow9.toolTip = ow9toolTip;

                    ow10.text = ow10Text;

                    ow10.toolTip = ow10toolTip;

                    ow11.text = ow11Text;

                    ow11.toolTip = ow11toolTip;

                    ow12.text = ow12Text;

                    ow12.toolTip = ow12toolTip;

                    ow13.text = ow13Text;

                    ow13.toolTip = ow13toolTip;

                    ow14.text = ow14Text;

                    ow14.toolTip = ow14toolTip;

                    ow15.text = ow15Text;

                    ow15.toolTip = ow15toolTip;

                    ow16.text = ow10Text;

                    ow16.toolTip = ow16toolTip;

                    ow17.text = ow10Text;

                    ow17.toolTip = ow17toolTip;

                    ow18.text = ow18Text;

                    ow18.toolTip = ow18toolTip;

                    ow19.text = ow19Text;

                    ow19.toolTip = ow19toolTip;

                    ow20.text = ow20Text;

                    ow20.toolTip = ow20toolTip;

                    ow21.text = ow21Text;

                    ow21.toolTip = ow21toolTip;

                    ow22.text = ow20Text;

                    ow22.toolTip = ow22toolTip;

                    ow23.text = ow23Text;

                    ow23.toolTip = ow23toolTip;

                    ow24.text = ow24Text;

                    ow24.toolTip = ow24toolTip;

                     

                    }

                    • 7. Re: Syntax Error:  Expecting semicolon before colon
                      pauland Level 4

                      Seeing the red on a list that has none, is a bit tricky.

                       

                      Usually the first error is the place to start.

                      1 person found this helpful
                      • 8. Re: Syntax Error:  Expecting semicolon before colon
                        learner_doug Level 1

                        I think there is a bug in Flash Builder.  I'm going to run this on another machine to see what happens.

                         

                        Thanks again!

                        Doug

                        • 9. Re: Syntax Error:  Expecting semicolon before colon
                          learner_doug Level 1

                          This is crazy,

                          FYI: I simplified the AS file, with a script of only 17 lines, it throws errors on line 19 which doesn't even exist.  I think FlashBuilder is buggy.

                          • 10. Re: Syntax Error:  Expecting semicolon before colon
                            learner_doug Level 1

                            Penguin,

                            No switch statements in this one.

                            Thanks.

                            • 11. Re: Syntax Error:  Expecting semicolon before colon
                              pauland Level 4

                              I suspect you'll kick yourself when you solve it.

                               

                              Give us a clue as to where the first line is that has an error. You aren't making it easy to help you.

                              • 12. Re: Syntax Error:  Expecting semicolon before colon
                                learner_doug Level 1

                                Ha Ha, I've already kicked things!

                                • 13. Re: Syntax Error:  Expecting semicolon before colon
                                  pauland Level 4

                                  BTW when you do fix it, please check the spelling in your messages!

                                  • 14. Re: Syntax Error:  Expecting semicolon before colon
                                    learner_doug Level 1

                                    Thank you for pointing that out.

                                    • 15. Re: Syntax Error:  Expecting semicolon before colon
                                      _spoboyle Level 4
                                      var ow7Text:String: = "";
                                      var ow8Text:String: = "";
                                      var ow9Text:String: = "";
                                      var ow19Text:String: = "";
                                      var ow22Text:String: = "";

                                      should be

                                      var ow7Text:String = "";
                                      var ow8Text:String = "";
                                      var ow9Text:String = "";
                                      var ow19Text:String = "";
                                      var ow22Text:String = "";
                                      
                                      • 16. Re: Syntax Error:  Expecting semicolon before colon
                                        learner_doug Level 1

                                        Hard to believe I missed that.  Thanks again.

                                        Doug