# Dynamic Text Not working

**URL:** <https://forum.kirupa.com/t/dynamic-text-not-working/204202>\
**Category:** flash\
**Created:** [October 17, 2006, 10:38pm UTC](https://forum.kirupa.com/t/dynamic-text-not-working/204202 "2006-10-17T22:38:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seran128](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@seran128](https://forum.kirupa.com/u/seran128)\
**Post date:** [October 17, 2006, 10:38pm UTC](https://forum.kirupa.com/t/dynamic-text-not-working/204202/1 "2006-10-17T22:38:01Z")

</div>

This is my code in in the actions layer

as you can see it should update every second and it does because when I do a trace it shows in the output box that the counter increases. The problem is that I also have a dynamic text field with the var = cliptime and the instance = cliptime. When the code loads I do get it to output “0:00” but as the movie increments the text box doesn’t change at all.

```auto
setInterval(displayTime, 600);
import mx.video.*

function displayTime():Void{
    n = Math.round(my_movie.playheadTime);
    mins = Math.floor(n/60);
    secs = n - 60*mins;
    secs<10 ? secs = "0"+secs : secs;
    cliptime.text = mins+":"+secs 
    trace(mins+":"+secs)
    }

```
