Working with hitTest

Hi,
I am suppose to duplicate movie clip, attachMovie and set position it.
I have done it with the following codes below:


myobject.onMouseDown = function()
{
  if (empty1.hitTest(_xmouse,_ymouse,false))
  {
     numOfChars = numOfChars + 1;
     empty1.duplicateMovieClip("setChar"+numOfChars,numOfChars);
     
     attachMovie("char1","setChar"+numOfChars,numOfChars);
     setProperty ("setChar"+numOfChars,_x, "100");
     setProperty ("setChar"+numOfChars,_y, "100");
     setCharacters.push("setChar" + numOfChars);
  }
}

I managed to do so and push the name to the array.

However, when i tried to code it so i’m able to drag it around,
I am unable to do so with the following coding:


 var i = 0;
 if(setCharacters.length > i){
   trace(setCharacters*);
   if (_level0.(setCharacters*).hitTest(_xmouse,_ymouse,false))
   {
    startDrag(_root.setCharacters*);
    i++;
   }
 }

Can anyone please help me? Thanks >.<