Frame 1
myDate = new Date();
hr2 = mydate.getHours();
min2 = mydate.getMinutes();
seg2 = mydate.getSeconds();
milli1 = mydate.getMilliseconds();
if (hr2 > 12) {
hr2 = hr2 - 12;
}
_root.sombra.hr_sb._rotation = (hr2 * 30) + (min2 / 2);
_root.sombra.min_sb._rotation = min2 * 6;
_root.sombra.seg_sb._rotation = (seg2 * 6) + (milli1 / 166);
myDate = new Date();
hr1 = mydate.getHours();
min1 = mydate.getMinutes();
sec1 = mydate.getSeconds();
milli1 = mydate.getMilliseconds();
if (hr1 > 12) {
hr1 = hr1 - 12;
}
_root.hr._rotation = (hr1 * 30) + (min1 / 2);
_root.min._rotation = min1 * 6;
_root.sec._rotation = (sec1 * 6) + (milli1 / 166);
Frame 2
myDate = new Date();
hr2 = mydate.getHours();
min2 = mydate.getMinutes();
seg2 = mydate.getSeconds();
milli1 = mydate.getMilliseconds();
if (hr2 > 12) {
hr2 = hr2 - 12;
}
_root.sombra.hr_sb._rotation = (hr2 * 30) + (min2 / 2);
_root.sombra.min_sb._rotation = min2 * 6;
_root.sombra.seg_sb._rotation = (seg2 * 6) + (milli1 / 166);
myDate = new Date();
hr1 = mydate.getHours();
min1 = mydate.getMinutes();
sec1 = mydate.getSeconds();
milli1 = mydate.getMilliseconds();
if (hr1 > 12) {
hr1 = hr1 - 12;
}
_root.hr._rotation = (hr1 * 30) + (min1 / 2);
_root.min._rotation = min1 * 6;
_root.sec._rotation = (sec1 * 6) + (milli1 / 166);