Skip to content

Static Functions

forCount(count:Int, callback:Dynamic, args:Array<Dynamic>):Void

Description

Utility method for running a for loop with a given duration that leverages the engine for more efficiency. Use this for demanding for loops with large lists to improve performance. Parameters:

  • count - Number of times the for loop should run.
  • callback - A callback method to run that will receive the current zero-indexed loop number as its first argument. If this callback returns false, the loop will be ceased immediately.
  • args - Any additional arguments to pass to the callback method (Set to empty array [] if you desire no additional arguments)

forEach(list:Array<Dynamic>, callback:Dynamic, args:Array<Dynamic>):Void

Description

Utility method for running a for...in loop against a list that leverages the engine for more efficiency. Use this for demanding for loops with large lists to improve performance. Parameters:

  • list - The array containing the elements to loop through.
  • callback - A callback method to run that will receive the current iteratee as its first argument, and index integer as its second argument. If this callback returns false, the loop will be ceased immediately.
  • args - Any additional arguments to pass to the callback method (Set to empty array [] if you desire no additional arguments)

framesToTimeString(numFrames:Int):String

Description

Returns formatted timestamp given # of frames. Includes milliseconds.

framesToTimeStringShort(numFrames:Int):String

Description

Returns formatted timestamp given # of frames. Does not include milliseconds.

log(msg:Dynamic, color?:Int):Void

Description

makeUid():Int

Description