<-------------------------------------------------------------->
This tutorial is very simple, any beginner flash artist can do it.
<-------------------------------------------------------------->
<-->
STEP 1
<-->
Make a symbol, and inside it, make 3 movie clips. One for the second hand, one for the minute hand, and one for the hour hand. Give the second hand an instance name of "sHand", the minute hand an instance name of "mHand", and the hour hand an instance name of "hHand". Make sure that they are centered, and that the registration point of the hands is where you want them to rotate about.
<-->
STEP 2
<-->
Place the following code in your clock symbol.:
|-----|
CODE
|-----|
onClipEvent (enterFrame) {
var my_date:Date = new Date();
hours = my_date.getHours();
minutes = my_date.getMinutes();
seconds = my_date.getSeconds();
hHand._rotation = (1/(12/(hours+minutes/60)))*360;
mHand._rotation = (1/(60/minutes))*360;
sHand._rotation = (1/(60/seconds))*360;
}
<-->
STEP 3
<-->
Edit your graphics to whatever you want them to be. You can make as many clocks as you want.
Advanced AS'ers, you can even edit the script to make a 24 hour clock or whatever you want!
<-------------------------------------------------------------->
Example Time!
<-------------------------------------------------------------->
http://img192.echo.cx/my.php?image=clock1pz.swf
<-------------------------------------------------------------->
Post your best clocks!
<-------------------------------------------------------------->
This has been a Glaiel Gamer tutorial.