PDA

View Full Version : digital clock



i will learn fl
May 28th, 2005, 06:13 AM
I made this digital clock using the gethour getminutes commands.
I have one question though. I also put in the getseconds command but I want it to update every second. The problem weith it is that once you open it ity will just show the same time.

Amish
May 28th, 2005, 06:39 AM
Heres the code i used.



_root.onEnterFrame = function() {
mydate = new Date();
hour._rotation = mydate.getHours()*30;
min._rotation = mydate.getMinutes()*6;
sec._rotation = mydate.getSeconds()*6;
};


I used the onenterframe to update all the time.