AJAX

Package : com.danehansen.utils
Class : public class AJAX
Inheritance : AJAX > Object

AJAX class contains shortcuts to making AJAX requests.

Public Constants

Public Methods

Color

Package : com.danehansen.utils
Class : public class Color
Inheritance : Color > Object

Color class contains static methods to help manipulate colors.

Public Methods

Cookie

Package : com.danehansen.utils
Class : public class Cookie
Inheritance : Cookie > Object

The Cookie class contains is an interface to reading/writing browser cookies.

Public Methods

Heap

Package : com.danehansen.utils
Class : public class Heap
Inheritance : Heap > Object

The Heap class creates an instance to be used in heap sorting.

Public Constants

Public Properties

Public Methods

MyMath

Package : com.danehansen.utils
Class : public class MyMath
Inheritance : MyMath > Object

The MyMath class contains a collection of mathematical equations either written or collected to make shit easier and awesomer.

Public Methods

MyText

Package : com.danehansen.utils
Class : public class MyText
Inheritance : MyText > Object

The MyText class is a collection of static methods used for processing/manipulating strings.

Public Methods

Timer

Package : com.danehansen.utils
Class : public class Timer
Inheritance : Timer > EventDispatcher > Object

The Timer class is the interface to setTimeout and setInterval, based on the AS3 Timer class but simplified. This class depends on EventDispatcher.js. Use the start() method to start a timer. Add an event listener for the timer event to set up code to be run on the timer interval.

You can create Timer objects to run once or repeat at specified intervals to execute code on a schedule.

Public Methods

Public Constants

Events

Utils

Package : com.danehansen.utils
Class : public class Utils
Inheritance : Utils > Object

A collection of commonly reused static functions.

Public Methods

EXAMPLE 1: RANDOM

for(var i=0; i<200; i++)
{
	var x=MyMath.random(0, 100, false);
	var y=MyMath.random(0, 100, false);
}
for(var i=0; i<200; i++)
{
	var x=MyMath.random(0, 100, false, 3);
	var y=MyMath.random(0, 100, false, 3);
}

EXAMPLE 2: TIMER

var timer=new Timer(1000, 10);
00:00