Reseting timeline to first frame if no event detected for a interval of time using AS 2.0

Hi! all.
i had searched a lot regarding this topic but no help.
All i want is that if their is no interaction being made by the user in the flash file for a period on one minute than the timeline should move to the first frame of swf.
Plzzz help urgently require this

This is basically the sort of code you’d want:

var now = new Date
onMouseMove = function(){
    now = new Date
}

setInterval(function(){
    var newNow = new Date
    if(newNow - now >= 60 * 1000) gotoAndPlay(1)
}, 1000)