Skip to main content
Participating Frequently
June 1, 2009
Question

call a funtion at regular interval

  • June 1, 2009
  • 1 reply
  • 906 views

hi all, how a function can be called at regular interval for limited times in AS3.0 and one more thing the timer should not be started automatically. I have to trigger that method.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
June 1, 2009

you already know about the timer class?  if not, that's what you should use.  check the flash help files.

if yes, what problem are you having?

Participating Frequently
June 2, 2009

Actually what I need is, setInterval function should not start defaulty. whenever I want, I will have to start as well as clear.

kglad
Community Expert
Community Expert
June 2, 2009

i'm not sure what you're trying to say.

setInterval() starts calling its function when the interval is instantiated and stops when the interval is cleared.

you can define a timer, add a listener and define a listener function and start it whenever you want and stop it whenever you want.