I found this blog post (see below) about using the
FlexEvent.IDLE event to create and inactivity timeout. However, I
am running into problems with this line:
FB3 throws and error about how I can't use the "this"
keyword. I put this line after the import statements. Should I put
it somewhere else?
I'm running out the door or it would be a fun experiment to
play with. However, I remembered using something similar before
that I got off of a Japanese blog, which is below. Looks like they
added event listeners for mouse and keyboard, which I wouldn't
think would be necessary by definition of idle but maybe you can
reverse engineer something from this working example.
OK. Took a look upon return and here's how it can be used if
inside an mxml document. It's probably that the blog spoke to
creating a timer inside a class file rather than in the context of
an mxml file, where you would not have the addEventListener by
itself outside of a function). Here I just fire off the init
function upon the application being totally created.