PDA

View Full Version : Writing a Actionscript for Time



JustOnePix
March 1st, 2003, 12:26 PM
Hey. How would I go about writing code to make a dynamic textfield display the time showing the seconds as they increment and change the minutes/hours dynamically?

The way I know will show the time, but will only change if you refresh the .SWF or go back to the scene with the textfield.

Thank you.

senocular
March 1st, 2003, 12:35 PM
using whatever way you show time, just do it over and over again so it refreshes constantly. The way to do this is by adding it to an enter frame event. Since its running every frame, if the time changes, it will be updated.

Jubba
March 1st, 2003, 12:47 PM
Tutorials always help... here is one that I wrote:

http://www.kirupa.com/developer/actionscript/digital_clock.htm