Leading Zero on Single Digits (Flash) - From http://stackoverflow.com/questions/1450518/leading-zero-on-single-digits-flash
// Short version
function leadingZero(num) {
return (num < 10 ? '0' + num : num).toString()
}
// Long version
function leadingZero(num : Number) : String {
if(num < 10) {
return "0" + num;
}
return num.toString();
}