很好用的两例时钟代码.docVIP

  • 11
  • 0
  • 约1.32千字
  • 约 2页
  • 2019-07-04 发布于江苏
  • 举报
时钟代码实例001. _root.onEnterFrame = function () { myDate = new Date(); s._rotation = myDate.getHours() * 30 + myDate.getMinutes() / 2; s2._rotation = myDate.getHours() * 30 + myDate.getMinutes() / 2; f._rotation = myDate.getMinutes() * 6 + myDate.getSeconds() / 10; f2._rotation = myDate.getMinutes() * 6 + myDate.getSeconds() / 10; m._rotation = myDate.getSeconds() * 6; m2._rotation = myDate.getSeconds() * 6; }; 时针实例名:s 分针实例名:f 秒针实例名:m 时钟代码实例002.【匀速转动】 time = new Date(); hours = time.getHours(); minutes = time.getMinutes(); seconds = time.getSeconds(); mseconds = tim

文档评论(0)

1亿VIP精品文档

相关文档