hitTest using attachMovie

Hello,
I am hoping someone can point me in the right direction on this project. I am working on doing a hitTest using one attachMovie and one repeating movieClip. I am running into trouble because the movie clip is changing it’s name every time it’s created (panda1, panda2, panda3, etc…) and the attachMovie, fire, is not recognizing the created MC’s. here is the code to create the movieClips:

for(i=1;i<=6;i++)
{
panda = _root[“panda”].duplicateMovieClip(“panda”+i,i+1000,panda);
}

If I take away “panda =” from the beginning it doesn’t work.

Here is the code for fire including the hitTest section:

function fire(){
if(reloaded){
x=_root.getNextHighestDepth();
var fire:MovieClip=_root.attachMovie(“fireball”, “fireball”+x, x);
fire._x=mouth._x;
fire._y=mouth._y;
randomNum=random(bulletOffset)-bulletOffset/2;
fire._rotation=mouth._rotation+randomNum;
fire.xSpeed=Math.cos(Math.PI/180 * fire._rotation)*bulletSpeed;
fire.ySpeed=Math.sin(Math.PI/180 * fire._rotation)*bulletSpeed;
fire.life=0;
fire.onEnterFrame=function(){
this._x+=this.xSpeed;
this._y+=this.ySpeed;
if (fire.hitTest(panda)) {
_root.panda.gotoAndPlay(2);}
this.life++;
if(this.life>totalLife){
this.removeMovieClip();
this.unloadMovie();
if (this.hitTest(_root.panda)) {
panda.gotoAndPlay(2);

}

I feel like I’m missing one small piece of code to make this work. Any ideas are greatly appreciated.

Thank you,
Andy