I don't think thats what I'm looking for. To clear some confusion, I'll write the code I have, so you can know what I'm attempting:
object.onEnterFrame = function(){
for (i=0; i<360; i+=5) {
X = this._x + (Math.cos(i*(Math.PI/180))*radius)+_x;
Y = this._y + (Math.sin(i*(Math.PI/180))*radius)+_y;
if (floor.hitTest(X, Y, true) or(all the objects inside myArray [i dont know how to do this])).hitTest(X,Y, true)){
pointstop();
break;
}
}
function pointstop(){
totalhits+=1
DupedMC = _root.attachMovie("MC", "MC"+i,i,{_x:location._x, _y:location._y})
var myArray:Array = new Array();
for(i=0; i< totalhits; i++){
myArray[i] = _root["MC" + i]
}
}
Now for explanation :
An object either hits the floor or a member or my Array (which consists of duplicated Movie Clip "MC"). When this hit occurs, pointstop function is called. The total # of hits increases by 1, and "MC" is duplicated at the location where the object hit the floor or one of the objects in the array. An array is created which holds, based on the number of hits there have been," i" number of duplicated "MC"'s. Basically I've tried to set up an array that comprises of all the duplicated MC's. I need to use these values in the array as objects that can be collided with, as written in the hitTest section. This may all make more sense when you view the link to my game:
Here
So I want each following ball to attach to any of the others that have fallen. That is why I need all the duplicated MC's to be together in an array and for the array to have some sort of hitTest ability. How do I accomplish all this?