# Trying to get clock arms to move smoothly

**URL:** <https://forum.kirupa.com/t/trying-to-get-clock-arms-to-move-smoothly/243201>\
**Category:** Uncategorized\
**Created:** [November 4, 2007, 8:19am UTC](https://forum.kirupa.com/t/trying-to-get-clock-arms-to-move-smoothly/243201 "2007-11-04T08:19:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohbeewan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ohbeewan/32/1745_2.png) [@ohbeewan](https://forum.kirupa.com/u/ohbeewan)\
**Post date:** [November 4, 2007, 8:19am UTC](https://forum.kirupa.com/t/trying-to-get-clock-arms-to-move-smoothly/243201/1 "2007-11-04T08:19:03Z")

</div>

Hi,

yeah, building a lame flash clock here…I’m trying find a way to make the second hand move smoothly, instead of just jumping in rotation based on the next second as in this code here:

```auto
onEnterFrame = function(){
  nowTime = new Date();
  hours = nowTime.getHours();
  if (hours > 12) hours -= 12;
  hourH._rotation = (hours / 12) * 360;
  minH._rotation = (nowTime.getMinutes() / 60) * 360;
  secH._rotation = (nowTime.getSeconds() / 60) * 360;
}

```

Any ideas? Thanks!
