I have a dynamic text layer with a number
dollarAmountValue = 9000
dollarAmount = new Layer
dollarAmount.html = "$" + dollarAmountValue
I also have a + and - button that increments dollarAmountValue by 100
dollarPlus.onClick ->
dollarAmountValue = dollarAmountValue + 100
dollarMinus.onClick ->
dollarAmountValue = dollarAmountValue - 100
So the dollar amount displays as $9000, all good. What I'm trying to do is display it as $9,000 and have the comma separation for 1000's as the +/- increment buttons are pressed. Any help would be greatly appreciated. Thanks!