Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
ADOXtra
Vector Shape - Create Star
Check for activeX component
cXtraEditBox
Control direction of velocity
Ceiling and floor math functions
Spawn
Sprite Blender - Time
Flash sending messages to Director
Script Interface Tool
MediaMacros Xtras Mall
 

 

 

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

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail