TypeError: Error #2007: Parameter hitTestObject must be non-null.
i'm making a game in AS3 in keyframe where there is a movieclip (killer) that has to collide with a child(trail) from the move clip(snake) . I like to call add "_mc" for movieclip and "_ins" for instance. Anyways this is my code
stage.addEventListener(Event.ENTER_FRAME, killsnake);
function killsnake(event:Event)
{
if (killer_ins.hitTestObject(snake_ins.children))
{
trace("asnltsatopgameal;ntaetnaen");
}
}
it keeps giving me the error. I'm not sure how to solve this without it saying "undefined property blablabla" or the error up top. What's a way I can do this?
