Frame 1
function fncGetHours() {
var _local1 = new Date();
var _local2 = _local1.getHours();
return(_local2);
}
function fncGetMinutes() {
var _local1 = new Date();
var _local2 = _local1.getMinutes();
return(_local2);
}
function fncGetSeconds() {
var _local1 = new Date();
var _local2 = _local1.getSeconds();
return(_local2);
}
onEnterFrame = function () {
byoushin._rotation = fncGetSeconds() * 6;
tyoushin._rotation = ((fncGetMinutes() * 60) + fncGetSeconds()) * 0.1;
tanshin._rotation = ((fncGetHours() * 60) + fncGetMinutes()) * 0.5;
};
menu_cm = new ContextMenu();
menu_cm.builtInItems.forward_back = false;
menu_cm.builtInItems.loop = false;
menu_cm.builtInItems.play = false;
menu_cm.builtInItems.print = false;
menu_cm.builtInItems.quality = true;
menu_cm.builtInItems.rewind = false;
menu_cm.builtInItems.save = false;
menu_cm.builtInItems.zoom = false;
_root.menu = menu_cm;
stop();
Frame 2
function fncGetHours() {
var _local1 = new Date();
var _local2 = _local1.getHours();
return(_local2);
}
function fncGetMinutes() {
var _local1 = new Date();
var _local2 = _local1.getMinutes();
return(_local2);
}
function fncGetSeconds() {
var _local1 = new Date();
var _local2 = _local1.getSeconds();
return(_local2);
}
onEnterFrame = function () {
byoushin._rotation = fncGetSeconds() * 6;
tyoushin._rotation = ((fncGetMinutes() * 60) + fncGetSeconds()) * 0.1;
tanshin._rotation = ((fncGetHours() * 60) + fncGetMinutes()) * 0.5;
};
stop();
Symbol 5 Button
on (release) {
stopAllSounds();
play();
}