# Duplicating Loader UI Component Doesn't Work

**URL:** <https://forum.kirupa.com/t/duplicating-loader-ui-component-doesnt-work/55634>\
**Category:** flash\
**Created:** [June 25, 2004, 11:11pm UTC](https://forum.kirupa.com/t/duplicating-loader-ui-component-doesnt-work/55634 "2004-06-25T23:11:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karmas](https://avatars.discourse-cdn.com/v4/letter/k/ec9cab/32.png) [@karmas](https://forum.kirupa.com/u/karmas)\
**Post date:** [June 25, 2004, 11:11pm UTC](https://forum.kirupa.com/t/duplicating-loader-ui-component-doesnt-work/55634/1 "2004-06-25T23:11:25Z")

</div>

[font=Arial]I created a grid (5X4) by duplicating a movie clip on the stage with a “for” loop, ok?  
The duplication worked fine till I putted a loader component inside that Movie Clip.  
After debugging it, I saw that (in actionscript 2) the duplicated clip was dissapearing  
at repositioning (when “mc.\_x” or “mc.\_y” took place) and with actionscript 1 the loader  
component doesn’t load at all, as we all know.

Please tell me if this is a bug (witch I don’t believe) or I am doing something wrong.[/font]

```auto

rows = 4;
cols = 5;
height = 100;
width = 100;
count = 1;
Image1 = "img1.jpg";
Image2 = "img2.jpg";
Image3 = "img3.jpg";
for (var r = 1; r<=rows; r++) {
	 for (var c = 1; c<=cols; c++) {
		  count++;
		  name = "clip"+r+"_"+c;
		  _root.myClip.duplicateMovieClip(name, count);
		  _root[name].loader.load(_root["Image"+count]);
		  with (_root[name]) {
			   _x = c*width;
			   _y = r*height;
		  }
	 }
}
myClip._visible = 1;
 

```
