Following example will show you how to create date and time function in flash. Read tutorial and download example. Create a dynamic text field named as Mytime or whatever you like. Create a movie clip outside of movie area (canvas), and write the following script on that and you are done.