Create thumb holders for slide gallery thumbnails

I’m beginning to use AS3 and I can’t figure out how to add a series of thumbholders. The following code just pushes to the right the 1 movieclip with instance name “thumb”:

var thumbnum:Number = 10;//Number of thumbs
var xpos:int = 0;//thumb x position
var clipwidth:int = 20;//thumb width
var sep:int = 30;//thumb separation
var space:int = clipwidth + sep;

thumb.width = clipwidth;

var i:int = 0;

for(i = 0; i < thumbnum; i++){
	thumb.x = xpos;
	xpos = xpos + space;
	trace(xpos);
	
	addChild(thumb);
}