Director problem


Im making an information touch screen system using DIRECTOR MX, i want the movie to go to a section called “loop” if there is no action for five minutes, i.e if the user walks away, the system will revert back to the main screen!

im using the code:-

on mouseUp me
if the lastClick > 2 * 60 then go to “loop”
end if

but would this work?, and if so where the hell would i put it in the score?

I know this is a flash MX forum, but thought u guys could maybe help me?! :worried: