Inactivity
| Kind of class: | class |
|---|---|
| Inherits from: | EventDispatcher < CoreObject |
| Version: | 11/11/06 |
| Author: | Aaron Clinger |
| Classpath: | org.casaframework.util.Inactivity |
| File last modified: | Monday, 08 January 2007, 09:57:51 |
Detects user inactivity by checking for a void in mouse movement and key presses.
Example:
function onInactive(sender:Object):Void { trace("User has been inactive for 5 seconds."); } function onReactive(sender:Object):Void { trace("User has resumed activity."); } var inactivityDetect:Inactivity = new Inactivity(5000); this.inactivityDetect.addEventObserver(this, "onInactive"); this.inactivityDetect.addEventObserver(this, "onReactive");
Events broadcast to listeners:
onInactive = function (sender:Object) {} onReactive = function (sender:Object) {} Summary
Constructor
Instance properties
Instance properties inherited from EventDispatcher
Instance properties inherited from CoreObject
Instance methods
Instance methods inherited from EventDispatcher
Instance methods inherited from CoreObject
Constructor
Inactivity
function Inactivity (
timeUntilInactive:Number)
Creates Inactivity object, and defines time until user is inactive.
Parameters:
timeUntilInactive:
The time in milliseconds until a user is considered inactive.
Events broadcast to listeners:
onInactive = function (sender:Object) {}