Useing a var with drawing API

Hi I have been trying to do some dynamic drawing with flash but can’t seem to address a movie clip if I stick a variable in it’s name. for instance:


build = function(i){
_root.createEmptyMovieClip("holder"+i, i);
holder+i.lineStyle(1,0,100);
holder+i.lineTo(300,i*10);
}

for(i=1;i<10;i++){
	build(i);
}

The only problem is geting it to understand “holder+i”. Anyone know what a girl’s to do?