Time variable

I hava made time and this is the code of first frame:

time=new Date(); // time object
var minutes = time.getMinutes()  
var hours = time.getHours()  
if (hours<10)  	
hours = "0" + hours;  	
if (minutes<10)  	
minutes = "0" + minutes;  	
clock_txt.text = hours + ":" + minutes  

and in a second frame I have insert


Everything function normal and perfect.

Now, I have made more complex thing, so I don’t need to be back on the first frame, becuae then my “project” doesn’t work norma and good.

Now, question is, how to refresh time?

When I start my project, time is always show in the minute that I have start it. After that the time is always the same.
How to refresh it, where and which code do I have to insert that my time shows properly.
Thaks in advance