hitTest on Object within the same array

I have enemy ships appear four at a time, however sometimes they appear on top of each other, how can I make a hitTest that will determine if objects within the same array are hitting each other, this is the way I do my hitTest:

ActionScript Code:
[LEFT][COLOR=#0000FF]for[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000]**var**[/COLOR] enemyNum:[COLOR=#0000FF]int[/COLOR]=enemies.[COLOR=#0000FF]length[/COLOR] - [COLOR=#000080]1[/COLOR]; enemyNum >= [COLOR=#000080]0[/COLOR]; enemyNum--[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
            [COLOR=#0000FF]for[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000]**var**[/COLOR] laserNum:[COLOR=#0000FF]int[/COLOR]=lasers.[COLOR=#0000FF]length[/COLOR] - [COLOR=#000080]1[/COLOR]; laserNum >= [COLOR=#000080]0[/COLOR]; laserNum--[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
                [COLOR=#0000FF]if[/COLOR] [COLOR=#000000]([/COLOR]enemies[COLOR=#000000][[/COLOR]enemyNum[COLOR=#000000]][/COLOR].[COLOR=#000080]hitTestObject[/COLOR][COLOR=#000000]([/COLOR]lasers[COLOR=#000000][[/COLOR]laserNum[COLOR=#000000]][/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]

[/LEFT]

however this doesn’t work because the objects will end up hitting themselves

[AS]for (var enemyNum:int=enemies.length - 1; enemyNum >= 0; enemyNum–) {
for (var laserNum:int=lasers.length - 1; laserNum >= 0; laserNum–) {
if (enemies[enemyNum].hitTestObject(lasers[laserNum])) {[/AS]

what do you mean the objects will end up hitting themselves? all i can see here is each enemy testing for collision with the lasers.

I have enemy ships appear four at a time, however sometimes they appear on top of each other, how can I make a hitTest that will determine if objects within the same array are hitting each other

do you want to see if the enemy ships are hitting each other?

■■■■, wrong hitTest, this is the one I was using

for (var enemyNum:int=enemies.length - 1; enemyNum >= 0; enemyNum--) {
				for (var enemyNum2:int=lasers.length - 1; enemyNum2 >= 0; enemyNum2--) {
					if (enemies[enemyNum].hitTestObject(lasers[enemyNum2])) {
for (var enemyNum:int=enemies.length - 1; enemyNum >= 0; enemyNum--) {
                for (var enemyNum2:int=lasers.length - 1; enemyNum2 >= 0; enemyNum2--) {
                    if (enemies[enemyNum].hitTestObject(enemies[enemyNum2])) {

Just an Idea



//-------COLLISION DETECTION
			for(var i:int = 0; i < enemies.length; i++){
				if(enemies*.hitTestObject(enemies[i + 1])){
					do whatever();
				}
			}

thanks, Ill give it a try