Hey all,

I'm trying to work this out if anyone can help. I have a function:

Actionscript Code:
function formatSeconds(num):String {
     var min = (Math.floor(num / 60));
     var sec = (Math.floor(num % 60));
     var frame = (Math.floor(num * 30));
     if ((sec + "").length == 1)     {
         sec = "0" + sec;     }
     if ((min + "").length == 1)     {
         min = "0" + min;     }
     if (frame == "30")     {
     frame = "0";     }
         frame++;
     return min + " : " + sec + " : " + frame;
 }

the problem is it is called with this function:

Actionscript Code:
function resetTime() {
     mc.onEnterFrame = function()     {
         currentTime.text = formatSeconds(mc._currentframe / 30);     };
}

when I pause the movieclip set at 30fps the sec,min stop but the frame var keeps running in the onEnterFrame loop. I'm trying to get the framecount to go up to 29 then reset to 0 then flip to 1 second, currently when you pause the framecount it just keeps running. Can anyone point me in the right direction? Any help appreciated

A