Hey everybody. I’m creating a clock for a client, easy enough, but how would I go about getting that little springy movement in the second hand? Here’s an example http://625.uk.com/tv_logos/flash/abc_midlands_clock.asp
I’m using this clock code:
onClipEvent(enterFrame) {
springForward++;
var timeClock = new Date();
//var iMilliSec = timeClock.getMilliseconds();
var iSec = timeClock.getSeconds();
var iMin = timeClock.getMinutes();
var iHour = timeClock.getHours();
if(springForward == 4){
trace(springForward);
handSec._rotation = iSec * 12;
springForward = 0;
}else{
handSec._rotation = iSec * 6;
}
handMin._rotation = iMin * 6;
handHour._rotation = (iHour + iMin / 60)* 30;
if (iHourPrev > iHour) {
_root.updateDate(timeClock);
}
iHourPrev = iHour;
}
Thanks in advance