Is there anyway I can create a timeout in actionscript that if a user doesn't interact with a flash piece for a given amount of time, that it will time out and restart.

Thanks in advance.