Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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). ...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default Re: inactivity logout

    Post how you added the keydown and I'll add it to the example
    Tracy
    ntsiii Guest

  7. #6

    Default 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

  8. #7

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139