12 Hour Clock with Hands
Description: An analog-style clock with hour, minute, and second hands
Author: John Bezanis
Added: February 6th 2007
Version: Flash 8
Total Views: 4244
Views in the Past 7 Days: 71
Here's a simple example of a clock with hands. It uses the windows time. This is all of the actionscript required to get the clock working:
- onClipEvent(enterFrame){
- var time = new Date();
- this.seconds._rotation=time.getSeconds()*6-90;
- this.minutes._rotation=time.getMinutes()*6-90;
- this.hours._rotation=(time.getHours()%12)*30-90;
- }
The source file is available below for download.
Download Source File
Questions and Suggestions
Your staff is ok and useful too! Keep it up. Please can you give us digital clocks, calculators and calendars?
January 11th 2008 04:01AM - Emmanuel Aigbovbiosa
A digital clock would be something like this: sometextbox=time.getHours()+":"+time.getMinutes()+" "+time.getSeconds();
January 11th 2008 06:01AM - John
Add a Question or Suggestion







