Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clock

Status
Not open for further replies.

brainpudding

Technical User
Sep 29, 2002
84
US
I am trying to make a classic pocket watch, I am not good at the formula stuff, anyone know a formula i can use to tell the differnet hands how to rotate? like the hour hand minute hand and second hand.. its not showing actual time i just need it to look realistic
 
if you do not need it to tell the actual time then is there a reason why you can not make it rotate by tweening it?
 
man you're lucky, i made exactly that kind of file a month ago:



i included the fla in the zip-file. in fact you could just exchange the images by yours, the code works. i did this to make a screensaver so the watch jumps around the screen, just delete the script on the clip of the watch and it will hold its position.
regards

Firegambler
 
i forgot to say... the file gets the system time of the user's local machine and displays it by converting the hours, minutes and seconds into a rotation. if you do not want to make it show the real time you'll have to program some sort of timer to replace the effect but i guess real time is ok, right? ;-) regards

Firegambler
 
ok great I appreciate the help guys









Ill learn this stuff one day :|
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top