I have made a counter for a simple mp3 player, everything but the counter is working fine. The counter is really messing up the hour, for an hour long mp3 it jumps all the way up 102 or something hours. The code is:
pos = new Date();
pos.setSeconds(music.position/1000);
pos.setMinutes((music.position/1000)/60);
pos.setHours(music.position/1000)/120);
seconds = pos.getSeconds();
minutes = pos.getMinutes();
hours = pos.getHours();
if(seconds < 10){
seconds = 0 + seconds.toString():
}
if(minutes < 10){
minutes = 0 + minutes.toString();
}
if(hours < 10){
hours = 0 + hours.toString();
}
time = hours + ":" + minutes + ":" + seconds;
this actionscript talks to a Dynamic Text box ,single line, with the Var name “time” in the properties window. Been racking my brain about this for a while and still not getting it, can anyone help?