0 Replies Latest reply on Sep 8, 2014 6:06 AM by rachelhie

    1084: Syntax error: Expecting rightbrace before toFixed(1)

    rachelhie Level 1

      So I've been stuck on this one code for a couple days now because it's asking me to add another right brace before a line, but I have everything properly closed off:

       

      btnDebtBurdens.addEventListener(MouseEvent.CLICK, displayDebtBurdens);

       

       

      function displayDebtBurdens(e:MouseEvent):void

      {

        var lbluint1:uint;

        var lbluint2:uint;

        var lbluint3:uint;

        var lbluint4:uint;

       

       

        2007 = 481.5;

        2008 = 481.5 * 1.03;

        2009 = 481.5 * 1.03 * 1.03;

        2010 = 481.5 * 1.03 * 1.03 * 1.03;

       

       

        lbluint1.text = 2007.toFixed(1);

        lbluint2.text = 2008.toFixed(1);

        lbluint3.text = 2009.toString();

        lbluint4.text = 2010.toString();

      }

       

      It's asking me to put it before toFixed in lbluint1.text = 2007.toFixed(1) and even when I do put one there it then goes to say that I have extra characters at the end of the program. When I go to get rid of the other brace, it still says there' s too many characters.