Frame 1
time = new Date();
var seconds = time.getSeconds();
var minutes = time.getMinutes();
var hours = time.getHours();
var date = time.getDate();
var month = time.getMonth();
if (seconds > 0) {
seconds2 = 60 - seconds;
} else {
seconds2 = seconds;
}
if (minutes > 0) {
minutes2 = 59 - minutes;
} else {
minutes2 = (60 + minutes) - 1;
}
if (seconds2 == 0) {
if (minutes > 0) {
minutes2 = minutes2 + 1;
} else {
minutes2 = 0;
}
}
if (hours >= 10) {
hours2 = (24 - hours) + 9;
} else {
hours2 = 9 - hours;
}
if ((minutes2 == 0) && (seconds2 == 0)) {
if (hours2 < 23) {
hours2 = hours2 + 1;
} else {
hours2 = 0;
}
}
days = 19 - date;
if ((((month == 3) || (month == 5)) || (month == 8)) || (month == 10)) {
if (date >= 19) {
days = days + 30;
}
}
if (((((((month == 0) || (month == 2)) || (month == 4)) || (month == 6)) || (month == 7)) || (month == 9)) || (month == 11)) {
if (date >= 19) {
days = days + 31;
}
}
if (month == 1) {
if (date >= 19) {
days = days + 28;
}
}
if (hours >= 10) {
if (((hours == 10) && (minutes2 == 0)) && (seconds2 == 0)) {
} else {
days = days - 1;
}
}
if (month < 6) {
month2 = 5 - month;
}
if (month >= 6) {
month2 = (12 - month) + 5;
}
if (date == 19) {
if (hours < 10) {
days = 0;
} else if ((hours == 10) && (seconds == 0)) {
days = 0;
} else {
month2 = month2 - 1;
}
}
if (date > 19) {
month2 = month2 - 1;
}
if (((((month == 5) && (date == 19)) && (hours == 10)) && (minutes2 == 0)) && (seconds2 == 0)) {
gotoAndStop (3);
}
if (month2 < 10) {
month2 = "0" + month2;
}
if (days < 10) {
days = "0" + days;
}
if (hours2 < 10) {
hours2 = "0" + hours2;
}
if (minutes2 < 10) {
minutes2 = "0" + minutes2;
}
if (seconds2 < 10) {
seconds2 = "0" + seconds2;
}
seconds_txt.text = seconds2;
minutes_txt.text = minutes2;
hours_txt.text = hours2;
days_txt.text = days;
months_txt.text = month2;
Frame 2
gotoAndPlay (1);