用flash做钟其实很简单的,主要看你画的时钟漂亮不,里面的代码就这一点:
_root.onEnterFrame = function() {
// 更新时间
myDate = new Date();
// 时钟,分钟,秒钟指的角度,还有它们的影子的角度
hourHand._rotation = myDate.getHours()*30+(myDate.getMinutes()/2);
hourHandShadow._rotation = myDate.getHours()*30+(myDate.getMinutes()/2);
minuteHand._rotation = myDate.getMinutes()*6+(myDate.getSeconds()/10);
minuteHandShadow._rotation = myDate.getMinutes()*6+(myDate.getSeconds()/10);
secondHand._rotation = myDate.getSeconds()*6;
secondHandShadow._rotation = myDate.getSeconds()*6;
};