Posts Tagged ‘programming’

On detecting idle states in Flex 4

Monday, July 5th, 2010

So I’m building a B2B dashboard in Flex, and thought I’d write up a quick post on a problem I didn’t see many online solutions for – well, there are solutions, but they all reference weaksauce flex 2, so I thought I’d go all new and shiny and post this working flex 4 example.

The problem is simple: How do I detect an Idle user, turn off all timed network requests, and — eventually — log off users silly enough to walk away from my interface?


An idle user

Example: situation this code is meant to save my application from.

Check out the code…