# LoadClip only Shows Last MC that was Loaded

**URL:** https://forum.kirupa.com/t/loadclip-only-shows-last-mc-that-was-loaded/189668
**Category:** flash
**Created:** [June 5, 2006, 5:07am UTC](https://forum.kirupa.com/t/loadclip-only-shows-last-mc-that-was-loaded/189668 "2006-06-05T05:07:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![deltatuk](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@deltatuk](https://forum.kirupa.com/u/deltatuk)
#### Post date: [June 5, 2006, 5:07am UTC](https://forum.kirupa.com/t/loadclip-only-shows-last-mc-that-was-loaded/189668/1 "2006-06-05T05:07:30Z")

</div>

I have the following code below that works but it has a quirk that it will only show the last MC that was loaded. If you try to reference the first MC it gives an error that the movieclip doesn’t exist. Anyone know what would be causing this or how I can get all the movieclips loaded and showing?

```auto
for(y=1; y<=2; y++){
	_root.createEmptyMovieClip("thumb"+y, 1);	
	var thumbName = eval("_root.thumb"+y);
	thumbName._x = (y*100);
	var imageLoader = new MovieClipLoader();
	imageLoader.loadClip(picArray[y], thumbName);
}

imageLoader.onLoadInit = function(targetMC){
	targetMC.createEmptyMovieClip("mask", 1);
	with(targetMC.mask){
		lineStyle(0,0xFFFFFF,100);
		beginFill(0x000000,30);
		moveTo(50,0);
		lineTo(150,0);
		lineTo(150,100);
		lineTo(50,100);
		lineTo(50,0);
		endFill();
	}
}

```
