How to create a timer?

basically I want something to happen every 5 seconds continuously.

I think i should be using a while loop with setInterval… but i think that’s as2.

does AS3 use a Timer class?