I want to run a piece of code whenever a spesific object on stage hittests any object in an array, how can i do this?
if (myObject.hitTestObject(myArray[0]))
{
// run code
}
This works and executes when my object hittests the first object in the array, but how do i make it apply for any object in the array?
if (myObject.hitTestObject(any object in my array))
sorry about the clumsy formulation but i hope you get what i am trying to do