[FONT=century gothic]I’m working on an analog clock project (I’m a swiss watch designer) and my project is to
create a clock which works with two hands for the seconds:
One hand for the seconds units (1sec).
One hand for each ten seconds (10sec).
The first hand(1sec), run 36 degrees each seconds (so it make 360 degrees in 10 seconds).
The other hand(10sec), run 60 degrees each 10 seconds (so it make 360 degrees in 60 seconds).
My will is to have a progressive movement between the seconds (for the 1sec hand),
a kind of “jump” like stop-slow-quick-slow-stop…and again… (a Circular or Sine Ease !?!)
and between the 10seconds hand (BUT this hand must be stopped during 9 seconds and must
move during 1 second -when the 1sec hand moves from 9 to 10-).
Can somebody help me for doing this, please ?
Thank you
that’s my code -i’m a bit lost- :
[[COLOR="#0000CD"][COLOR="#0000CD"]/FONT]
[FONT=courier new]import com.greensock.; import com.greensock.easing.;
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();
}
TweenMax.to(seconds_disc1_mc, 1, {rotation:360, ease:Expo.easeInOut});
TweenMax.to(seconds_disc2_mc, 1/2, {rotation:360, ease:Expo.easeInOut});[/FONT][/COLOR][/COLOR]