trying to check if a specific element in the array is equal to a string, so that i can then do something if it hits that specific object. if array is == "object1" and if array is == "object2"...
if (myBoat.hitTestObject(myCounterArray[i]) == true)
{
trace(myCounterArray[i] + i);
if(myCounterArray[i] == "myCounter")
{
scoreBoard.theScore += myCounter.counter;
scoreBoard.updateScore();
displayCountDown.countDown += 5;
displayCountDown.updateTimer();
removeChild(myCounterArray[i]);
myCounterArray.splice(i, 1);
}
}