finding an objects index in a multi dimensional static array?

ok so i have a selector that tells me the name of my object in my multi-dimensional array, but i want to know how i can have it send me back the index of that object. can anybody help me out?

Given that you know the transform (I assume it is an array of transforms?) you can use

var xPos : int = -1;
var yPos : int = -1;

for(var i : int = 0; i < array.GetLength(0); i++)
{
    for(var j : int = 0; j < array.GetLength(0); j++
    {
         if(selectedTransform == array[i, j];
         {
             xPos = i;
             yPos = j;
             break;
         }
    }
    if(xPos != -1)
    {
         break;
    }
}

And then you can use xPos and yPos! If they return -1, it means the selected transform isn’t in the grid (oops);