Restart a cleared Interval

Hello there can anyone help me restart my setInterval after I’ve cleared it?

my code

function wait() {
trace(“hello”) ;

var timer = setInterval(wait,2000);

//then on a button I have

btn.onPress = function():Void {

I have this all working fine. It starts an animation and at the end of the animation I’d like to restart the interval.

Trying to figure out the function I need to create in order to restart my interval.

Thanks in advance, this one’s stumping me.