Is there an event that the application dispatches when a flash swf has not
been interacted with for a certain amount of time?

For example, I have a site that a user has to log into. After they login if
they have not interacted at all with the application is there a event that
is dispatched that I can listen for so I can log the user out?

If not can I suggest something like this:

<Application inactivityTimeout="10" >

Application.addEventListener(Application.INACTIVITY, "myLogOutFunction");

public function myLogoutFunction(event:Event):void {
   // logoutService.send();
   // applicationState.selectedChild = loginState;
   // loginMessage.text = "You haven't done anything for 10 minutes. Get
back to work.";
}

Reply via email to