Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
fastlife #1
inactivity logout
I have a Flex application that I would like it to logout (essentially call a
function) when there is no activity for a given time. (No mouse movement or key
strokes). Is there a built in fx for this, if not any ideas. Thx
fastlife Guest
-
logout
Howdy, I have a question regarding logout page. Scenario: A user use login fine, bookmarks a page and then use logout successfully. When user... -
Strange inactivity of mouse events in projector
Hi, I am using Director 9 + 10 under Windows. When I start my projector and move over a button the mouseEnter and the mouseLeave event isnt... -
Laptop locks after short time of inactivity
I have a number of Gateway Laptops with XP Pro, These workstations lock after only a few minutes of inactivity. How do I change the amount of time... -
Internet inactivity....
I am having a problem with one of my two computers. Recently my desktop computer will lose the internet connection after it idles for a coupe... -
Mapped drives disconnect after inactivity
I have three Windows XP workstations (SP1 & all updates installed) connected to a Windows NT 4.0 SP6a Domain Server via TCP/IP (NetBIOS enabled). ... -
ntsiii #2
Re: inactivity logout
There is nothing built in but I have done this and it is not hard.
I will work on a full example in a bit.
Tracy
ntsiii Guest
-
ntsiii #3
Re: inactivity logout
Here is a full example:
[url]http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&object ID=309[/url]
Tracy
ntsiii Guest
-
fastlife #4
Re: inactivity logout
Tracy, thank you your code worked perfect. I have added keyDown to reset activity so I can track maouse and key strokes.
Thx again,
Haluk
fastlife Guest
-
ntsiii #5
Re: inactivity logout
Post how you added the keydown and I'll add it to the example
Tracy
ntsiii Guest
-
fastlife #6
Re: inactivity logout
I just added keyUp="resetLastActivity()" to the application. (keyDown was not
as reliable?)
And as long as there is a focus of text to be entered (like a textinput field)
keyUp reset the clock.
It is not elegant but for my application is sufficient.
I understand that there is a onKeyUp and Key.addListener fx's that may be
better suited and I will experiment later.
Thx again,
Haluk
fastlife Guest
-
fastlife #7
Re: inactivity logout
Here is my humble solution for adding key strokes to reset timer. I have not
made any changs to your code but added the onKeyUp with Key .addListener. If
you find a bug in this thinking let me know.
Thx.
Haluk
fastlife Guest



Reply With Quote

