12-19-2011, 04:34 PM
12-19-2011, 04:52 PM
Just wanted to point out that it’s not nice to post the same question on multiple forums (http://www.actionscript.org/forums/showthread.php3?t=268905). You’re just wasting the time of people trying to help in one thread when the question might have been solved in the other one.
Be patient and you will be helped eventually.
Also, could you please elaborate for what kind of project you need this countdown?
12-19-2011, 05:20 PM
12-19-2011, 05:29 PM
Show your existing code and doubtless someone will modify it for you.
12-19-2011, 05:41 PM
var sethour = t.substr(0,2);
var setminute = t.substr(3,2);
var Hours = clockTime.substr(0,2);
var Minutes = clockTime.substr(3,2);
var Seconds = clockTime.substr(6,2);
time_countdown(Hours,Minutes,Seconds,t,sethour,setminute); //show countdown time until reminder
//print time left to div
var hoursleft = sh-h;
var minutesleft = sm-m-1;
var secondsleft = 0-s;
This code prints the time left into the div with id "countdown"
e.g. the time printed could be "11:18:58"
I then need to have the time e.g. "11:18:58" turned into a countdown to 00:00:00 using setTimeout(), but i don't know how to do this
12-19-2011, 06:36 PM
You have not shown the whole of your code - there is no function clockTime(). shown.
But the solution is simple. Wrap the whole thing in a function named (say) show(), and call the function repeatedly with
12-19-2011, 09:55 PM
thanks, i've sorted it now