Getting Error BCE0019: 'GetComponent' is not a member of 'Object'

I get this error when I try and access a array in another Script, It works fine on PC and Mac Stand Alone but i Have trouble with the Android platform. Here is my Code Below Im using Javascript

for (var checkDoor : GameObject in cells*.GetComponent(AIPathCellScript).doors)*
{
if (checkDoor != gameObject)
{
for (var checkCell : GameObject in checkDoor.GetComponent(AIpathDoorScript).imediateC ells)
{
for (var j : int = 0; j <= cells.length - 1; j++)
{
if (cells[j] == checkCell doorsToCells[j] == null)
doorsToCells[j] = stage;
}
}
}
}
}
}
testForCells = false;
}
waitToTestCells -= 1;
}

Few tips:

  1. Use C#, it is type-safe
  2. If you are going to post code samples to forum, use proper (CODE) tags, e.g.
for (var checkDoor : GameObject in cells[i].GetComponent(AIPathCellScript).doors)
{
  if (checkDoor != gameObject)
  {
    for (var checkCell : GameObject in checkDoor.GetComponent(AIpathDoorScript).imediateC ells)
    {
      for (var j : int = 0; j <= cells.length - 1; j++)
      {
        if (cells[j] == checkCell  doorsToCells[j] == null)
          doorsToCells[j] = stage;
      }
    }
  }
}
}
}
testForCells = false;
}
waitToTestCells -= 1;
}

Ok Thanks.