Quantcast
Channel: Adobe Community : All Content - Flash Catalyst
Viewing all articles
Browse latest Browse all 149

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 149

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>