Multiple attached movies, remove when hitTested?

Hello!

We have this code that randomly attachMovies to the scene from the library, however as they are also randomly placed, there is a chance that they are placed on top of each other. This is what we somehow want to get around, either that they are removed if hittested or replaced on the scene.

This is our code:


function randRange(min:Number, max:Number):Number {
var randNum:Number = Math.round(Math.random()*(max-min))+min;
return randNum;
}

//Natur
var randNum:Number = (Math.random()*10 >> 0)+1;
_root.attachMovie("natur"+randNum, "natur"+randNum, 10, {_x: randRange(50, 750), _y: randRange(350, 420)});

var randNum:Number = (Math.random()*10 >> 0)+1;
_root.attachMovie("natur"+randNum, "natur"+randNum, 9, {_x: randRange(50, 750), _y: randRange(350, 420)});

var randNum:Number = (Math.random()*10 >> 0)+1;
_root.attachMovie("natur"+randNum, "natur"+randNum, 8, {_x: randRange(50, 750), _y: randRange(350, 420)});

var randNum:Number = (Math.random()*10 >> 0)+1;
_root.attachMovie("natur"+randNum, "natur"+randNum, 7, {_x: randRange(50, 750), _y: randRange(350, 420)});

var randNum:Number = (Math.random()*10 >> 0)+1;
_root.attachMovie("natur"+randNum, "natur"+randNum, 6, {_x: randRange(50, 750), _y: randRange(350, 420)});

var randNum:Number = (Math.random()*10 >> 0)+1;
_root.attachMovie("natur"+randNum, "natur"+randNum, 5, {_x: randRange(50, 750), _y: randRange(350, 420)});

// This does not work, but maybe something like this?
if("natur"+randNum, this.hitTest("natur"+randNum)){
    removeMovieClip("natur"+randNum);
}

Thanks for any help!