Access keys

RollOverWatcher

Kind of class: class
Inherits from: none
Author: Arthur Clemens
Classpath: org.asapframework.util.watch.RollOverWatcher
File last modified: Thursday, 12 October 2006, 11:18:33
Checks the mouse location for movement.
If the mouse has not moved in the set time period, a fallback function is called, allowing for instance a buttonclip to perform a rollout.
This class is useful to 'catch' the mouse if it has disappeared from the edge of the Flash stage. If this happens fast, or if the Flash movie is occupied, the movieclips don't receive any more mouse events, and stick to their current state. A RollOverWatcher object equals a out-of-stage mouse to a still mouse.

Constructor

RollOverWatcher

function RollOverWatcher (
inFallbackFunctionOwner:Object, inFallbackFunctionName:String, inIntervalDuration:Number)
Calls method 'inCallerFallbackFunctionName' of object 'inCaller' when mouse
inIntervalDuration in seconds
Parameters that should be passed to the fallbackFunction can be added as a
comma separated list after the 3 constructor parameters.

Instance methods

stop

function stop (
) : Void