/ Published in: ActionScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function formatNumber(aN:String):String { return (aN.length == 1 ? "0" : "") + aN.substr(0,aN.length - 1) + "" + aN.substr(aN.length-1); } trace(formatNumber("9");