PDA

View Full Version : Timers in LZX


djs
03-08-2005, 07:16 AM
I've been trying to implement a timer in LZX by using the JavaScript setInterval(<fn_name>, <ms>) function, but it doesn't look like this function is supported in LZX. Does anyone know if LZX offers alternative functionality that will allow me to implement a timer so that a particular function can be called repeatedly based on a time frequency?

-djs

hqm
03-08-2005, 07:36 AM
Look at the docs for LzTimer

djs
03-08-2005, 08:05 AM
Great, thanks. I thought I had remembered seeing a timer implementation in LZX ;D. A question about LzTimer... will the timer continue to run until removed or will it only run until the specified delegate is invoked once? If it's the second case, is it as simple as calling resetTimer() everytime through if I want it to repeat?