Skip to main content
Participant
June 24, 2011
Question

migration question as2 to as3, about setInterval

  • June 24, 2011
  • 1 reply
  • 597 views

Hi, I am learning as3. I have experience with as2.
In as2, you can use timers with setInterval. But as I was searching the web I read
that you can also use this in as3, but there is also a class called Timers.


What is best practice to use?

This topic has been closed for replies.

1 reply

relaxatraja
Inspiring
June 24, 2011

Use timers:

here is a good tutorial on that:

http://www.republicofcode.com/tutorials/flash/as3timer/

martinv80Author
Participant
June 24, 2011

thanks! This is a very helpfull tutorial, but It does not tell about the what's better to use.
I also read about the Timer Class takes more cpu then the setInterval method. I wonder if that's true.