文王武帅

2012年10月31日

模拟时钟

摘要: 下面是一个模拟时钟的例子:var second:uint;var minute:uint;var hour:uint;var myDate:Date=new Date();secondHand.rotation=myDate.getSeconds()*6;minuteHand.rotation=myDate.getMinutes()*6+myDate.getSeconds()*6/360*6;hourHand.rotation=myDate.getHours()*30+myDate.getMinutes()*6/360*30;var timer:Timer=new Timer(800);ti. 阅读全文

posted @ 2012-10-31 20:50 文王武帅 阅读(152) 评论(0) 推荐(0)

导航