Okay, I’ve got a simple piece of hit detection below, when they detect a hit, they call a couple of custom functions from the classes. Well, I can’t use ‘removeChild’ here cause it would remove the object before the ‘die’ animation plays. So I figure I have to remove the object from the class. How? I am a noob so forgive me if I’ve skewered a few terms.
for(var b=0; b<blastArray.length;b++){
for(var s=0; s<boxArray.length;s++){
if(blastArray**.hitTestObject(boxArray[s])){
trace('HIT!!!!');
boxArray[s].die();
blastArray**.hit();
//removeChild(boxArray[s]);
boxArray.splice(s,1);
//removeChild(blastArray**);
blastArray.splice(b,1);
}
}
}