dimanche 12 juillet 2009









onClipEvent (enterFrame) {
horl = new Date();
// Analogique
_root.secondes = horl.getSeconds();
_root.minutes = horl.getMinutes();
_root.heures = horl.getHours();
_root.aig._rotation = _root.secondes*6;
_root.m._rotation = _root.minutes*6;
if (_root.heures<=24) {
_root.h._rotation = _root.heures*30;
} else {
_root.h._rotation = (_root.heures-12)*30;
}
// Digitale
if (_root.minutes<=9) {
_root.minutes = "0"+_root.minutes;
_root.horloge = _root.heures+":"+_root.minutes;
} else {
_root.horloge = _root.heures+":"+_root.minutes;
}
}

Aucun commentaire:

http://www.oxy-more.com

http://www.oxy-more.com
Wall, Wild, Web