Thread.sleep() in AS3

to do this only with setInterval()?

how it works?

does a thread stops in a point of calling, waits n millis and than executes a defined function?