Packagecom.threerings.util
Classpublic class DelayUtil

A simple way to delay invocation of a function closure by one or more frames. Similar to UIComponent's callLater, only flex-free. If not running in the flash player, but instead in some tamarin environment like thane, "frames" are a minimum of 1ms apart, but may be more if other code doesn't yield.



Public Methods
 MethodDefined by
  
delayFrame(fn:Function, args:Array = null):void
[static] Delay invocation of the specified function closure by one frame.
DelayUtil
  
delayFrames(frames:int, fn:Function, args:Array = null):void
[static] Delay invocation of the specified function closure by one or more frames.
DelayUtil
Method detail
delayFrame()method
public static function delayFrame(fn:Function, args:Array = null):void

Delay invocation of the specified function closure by one frame.

Parameters
fn:Function
 
args:Array (default = null)
delayFrames()method 
public static function delayFrames(frames:int, fn:Function, args:Array = null):void

Delay invocation of the specified function closure by one or more frames.

Parameters
frames:int
 
fn:Function
 
args:Array (default = null)