2 Replies Latest reply on Jul 24, 2006 12:00 PM by Newsgroup_User

    Timeout for mouse

    Level 7
      Hello:

      I'm using timeout function to detect inactivity in the application, but when
      the mouse move the timeout follows it thing and don't take notice.

      How to detect when the mouse is moving and stop the timeout?

      Thank you


        • 1. Re: Timeout for mouse
          a¿ex
          what you are looking for is already built into director:


          lastRoll

          Syntax


          the lastRoll

          Description

          System property; gives the time in ticks (1 tick = 1/60 of a second) since the mouse was last moved.

          Example

          This statement checks whether 45 seconds have passed since the mouse was last moved and, if so, sends the playhead to the marker Attract Loop:

          if the lastRoll > 45 * 60 then go to "Attract Loop"
          • 2. Re: Timeout for mouse
            Level 7
            thank you:
            I don't understand this command.
            I need:

            If the mouse has moved then go to "mymovie"
            Does this command do this?

            > System property; gives the time in ticks (1 tick = 1/60 of a second) since
            > the
            > mouse was last moved.
            >
            > Example
            >
            > This statement checks whether 45 seconds have passed since the mouse was
            > last
            > moved and, if so, sends the playhead to the marker Attract Loop:
            >
            > if the lastRoll > 45 * 60 then go to "Attract Loop"
            >