To restart flash application after certain period of time

As topic says, may i know how to restart a flash application after a certain period of idle time? Currently i am using setInterval to track the idle. But i dont know how to restart the .swf after closing it. :*(

Thanks.