**HELP** Flash Actionscripting
**HELP** Flash Actionscripting
Out of context: Reply #12
- Started
- Last post
- 14 Responses
- SmilingBuddh0
A minute late, I suppose. Pretty much the same as unfit's:
Number.prototype.splitWithCommas = function() {
var xa = Math.round(this).toString().spli...
var ta = [];
for (var n = xa.length; n>=0; n--) {
ta.push(xa[n]);
if ((n%3) == 0 && n != 0) {
ta.push(",");
}}
return(ta.join(""));
};