attachMC problem

Hi there…

Ok the codes below are attaching the mc one by one on stage…so my problem is how to eliminate previos attach before move to next attach MC…let say as u can see in my code…I just settign the interval…for 2 second…in other to attach the mc on eby one…so how to set up the code so that if the 2nd mc has attach it’ll remove the 1st one attach for certain time…and so on…

the scenario like this…

mc1 attach
after 2 second
mc2 attach --> remove mc1
after 2 second
mc3 attach --> remove mc2
and so on…


var shapename:Array = ["shape0","shape1","shaep2"];

var mcholder:MovieClip = this.createEmptyMovieClip("mcholder",this.getNextHighestDepth());
var len:Number = shapename.length;
var count:Number = 0;
var i:Number = 0;

function attachShape():Void{
		var shapeMC = mcholder.attachMovie("shape"+i,"shape"+i,100+i);
	    shapeMC._x = 100+shapeMC._width*i;
        shapeMC._y = 100;
		trace("done attaching shape");

ID = setInterval(attachShape,2000);

So which part in my code I have to alter…hope will get some shed on light…any help are appreciate…