Problem with attaching thumb MC

Hi Kirupaville

My attempt is to attach thumb based on how many dt get return in flash…so far it’s okay only…when i choose another value from combobox…it will not eliminate the previous attach thumb…and also I try to attach gradually one by one.with bounce effect using Laco’s…but it’s seem not working at all…u guys can take look my AS here…


function searchdt(dtSel){
	cbdt.dataType = dtSel;
	//for (var prop in cbdt) {
		//		trace("About to send "+prop+" as: "+cbdt[prop]);
	//}
//just success send dt
  cbdt.sendAndLoad("http://localhost/multiupload/getimage.php",getdt,"POST");
}

var i:Number = 0;
var col:Number = 3;
var spacing:Number = 10;
createEmptyMovieClip("paper", 99);
paper._x = 200;
paper._y = 30;
var elasticSpeed:Number = .7;
var makeBoxesSpeed:Number = 100;

function loadthumb(success:Boolean){
	if(success){
		//paper.removeMovieClip();
		// id = setInterval( test, makeBoxesSpeed);
                //okay here I pass to function test
		 test(this.items);
		 trace(this.message);
		
	}else{
		//paper.removeMovieClip();
		trace("nothing found");
		trace(this.message);
	}
}

function test(a){
     //okay here i doing some tracing and it's okay it return the rite dt and the count as well
	trace(a);
	for (var i = 0; i<a; i++) {
			//if(i<a){
			// trace(i);
         		//input1 = this["filename"+i];
				//trace(input1);
//okay here I just attempt to attch gradually one by one and with bounce effect but it's seem not working at all...
				
					var mythumb = paper.attachMovie("box", "box"+i, i);
					mythumb._x = (i%col)*(mythumb._width+spacing);
					mythumb._y = Math.floor(i/col)*(mythumb._height+spacing);
					//mythumb.bounceMe();
					//i++;
			//}  else{
				
				//clearInterval(id);
			//}
         }
}

MovieClip.prototype.bounceMe = function() {
	this.scaleTo(100, elasticSpeed, "easeOutElastic");
};/*
id = setInterval(loadthumb, makeBoxesSpeed);
*/



Hope u guys can help me out with this …at least tell me which part is wrong…

tq again…