Class com.sekati.time.Throttle

Description

Throttle time between method calls

 Usage:
 var stageUpdater = new Throttle(Delegate.create(this, update), 500);
 function onResize() { stageUpdater.trigger(); }
 function doUpdate() { trace("throttled method!"); }
 

Method Index

new Throttle()
clearThrottle(), destroy(), trigger()

Inherited from CoreObject

Constructor Detail

Throttle

public function Throttle(proxyFunc:Function, msDelay:Number)

Constructor

Parameters

proxyFunc(Function) Function to throttle calls to

Method Detail

trigger

public function trigger():Void

trigger call to method

clearThrottle

public function clearThrottle():Void

clear throttling

destroy

public function destroy():Void