Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Get Font List without using xtras!
A Simple Back Button
Evil Mouse Puddle
Change Line Direction of a Shape Sprite
MIDIio
Anatomy of an Alpha Channel
Behavior Killer behavior
QuickTime Installer
SpellCatcher
ToolTip Xtra
 

 

 

Behavior Hide mouse on idle

Added on 5/1/2002

 

Compatibilities:
D8_5 PC

This item has not yet been rated

Author: Sander Falise

Hides the mousecursor if you don't move the mouse for a set period of time.

property mhLoc, mhCount, mhTiming

on new me
  me.mhLoc = duplicate(the mouseLoc)
  me.mhCount = 0
  me.mhTiming = 1000 -- !!! adjust your timing here !!!
  return me
end

on exitFrame me
    if me.mhLoc = the mouseLoc then
      if me.mhCount = 0 then
        me.mhCount = the milliseconds
      end if
    else
      me.mhCount = 0
      me.mhLoc = duplicate(the mouseLoc)
    end if  
    
    if me.mhCount = 0 then
      cursor 0
    else if (me.mhCount + me.mhTiming) < the milliseconds then
      cursor 200
    end if
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail