Writing a Actionscript for Time

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.

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.

Tutorials always help… here is one that I wrote:

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