Mar 062012
 

I need some help figuring out what lingo I use to have an
event happen once the mouse has been idle (no mouse clicks or
movement) for a period of time.|||
Try something like this – will look at mouse location (the
MouseLoc) and start a timer. If your mouse moves it will restart
the timer but if the timer is up, it will cause your event,
ta-daaah!|||
You can use the lastRoll property. It will tell you how long
it has

been since the mouse was moved. This code (copied straight
from the help

file) will go to the “Attract Loop” frame after the mouse has
not moved

for 45 seconds.

if (_player.lastRoll > (45 * 60)) then

_movie.go(“Attract Loop”)

end if

There is also the lastEvent property which does the same
thing but takes

into consideration mouse and keyboard input.

|||
you can test mouse clicks using the lastClick… for the
mouse click… don’t know if it works for both right and left
buttons and/or any other buttons to be found on certain mice.

There’s also lastKey, lastEvent, and lastRoll (as mentioned
already)

Related posts:

  1. Replacing recorded mouse with insert mouse to alter start point
  2. Mouse hover event to scroll text
  3. Getting Relative Mouse Loc Without Tell
  4. Image Mouse Overs = Small source pic to large mouse oevr
  5. Using the mouse wheel

Related posts brought to you by Yet Another Related Posts Plugin.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 free icons download Suffusion theme by Sayontan Sinha

Featuring Recent Posts WordPress Widget development by YD