springroll.pbskids.easeljs.DwellTimer Class
Fires DwellTime Learning events for clickable objects
Constructor
springroll.pbskids.easeljs.DwellTimer
Parameters:
-
target
createjs.DisplayObject
Object for which to add dwellTime events
-
[learning]
springroll.Learning
optional
Learning Dispatcher instance to use
create
static
Setup a DwellTimer for a DisplayObject.
Parameters:
-
obj
createjs.DisplayObject
destroy
()
Remove all listeners and whatnot
destroy
static
If exists, cleanup and remove DwellTimer from object
Parameters:
-
obj
createjs.DisplayObject
DisplayObject with DwellTimer to cleanup
mouseOut
Dwell ended - fire event if dwelled long enough
target
createjs.DisplayObject
Interactable DisplayObject
learning
springroll.Learning
Reference to Learning Dispatcher
Number
minimum length of dwell time necessary to fire event