// ActionScript 1.0 & 2.0


this.createEmptyMovieClip("clock", 3);

clock.onEnterFrame = function () {
   clockDate = new Date();
   seconds = clockDate.getSeconds();
   secondHand._rotation = seconds * 6;
   minutes = clockDate.getMinutes();
   minuteHand._rotation = minutes * 6;
   hours = clockDate.getHours();	
   hourHand._rotation = (hours * 30) + (minutes / 2);  
}