I’m made an Analog clock in AS3 and it works fine, but i want to make it so that rather than it just appearing at the next second everytime it ticks… i want it to make a quick tween between each tick, so you can see it moving… How would i go about doing this???
var timer:Timer = new Timer(1000);timer.addEventListener(TimerEvent.TIMER, clockHandler);timer.start(); function clockHandler(event:TimerEvent){ // set hour var time = new Date(); var hourHand = time.getHours(); var minuteHand = time.getMinutes(); var secondHand = time.getSeconds(); hourHand_.rotation = 30 * hourHand + minuteHand / 2; minuteHand_.rotation = 6 * minuteHand; secondHand_.rotation = 6 * secondHand;
that’s the code i’m using to make my clock…
Any help would be great… thanks