/*
version:		1.0
*/

ARRAY_2_COORDS = function(input, width, height):Object
{
	/*
	trace("ARRAY_2_COORDS( "+input+", "+width+", "+height+" )");
	trace("ARRAY_2_COORDS( input, width, height )");
	*/
	var myObject = new Object();
	myObject.x = input % width;
	myObject.y = Math.floor(input / width);
	return myObject;
}



COORDS_2_ARRAY = function(x, y, width):Number
{
	/*
	trace("COORDS_2_ARRAY( "+x+", "+y+", "+width+" )");
	trace("COORDS_2_ARRAY( x, y, width )");
	*/
	newArray = (y*width)+x;
	return newArray;
}