# Using loadMovie in duplicated MovieClip

**URL:** <https://forum.kirupa.com/t/using-loadmovie-in-duplicated-movieclip/174229>\
**Category:** Uncategorized\
**Created:** [January 4, 2006, 12:01am UTC](https://forum.kirupa.com/t/using-loadmovie-in-duplicated-movieclip/174229 "2006-01-04T00:01:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![onsitus](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/onsitus/32/971_2.png) [@onsitus](https://forum.kirupa.com/u/onsitus)\
**Post date:** [January 4, 2006, 12:01am UTC](https://forum.kirupa.com/t/using-loadmovie-in-duplicated-movieclip/174229/1 "2006-01-04T00:01:17Z")

</div>

I can’t manage to load jpg in some duplicated mc. I tried to add the as to the container mc “img”

```auto
onClipEvent (load){
 this.loadMovie(_parent._name+".jpg");
}

```

which trace the correct path to the jpg but the jpg don’t show up. (Which would be wrong as if I remember well, the mc when being duplicated loses the loadMovie part???To be confirm)  
So I thought that maybe the best would be to have it done while duplicating the movie but whatever I have beeen trying has been unsucessful. Here is the codes with duplicating mc.

```auto
onClipEvent(enterFrame){
//CODE GENERAZIONE QUARDATI
//tot=10;
for(var i=1;i<tot+1;i++){
 e="foto"+i;
 if(i%2!=0){
  if(i!=1 && i!=2){
   yp=0;
   xp=_parent["foto"+String(i-2)]._x+68;
  }else{
   xp=0;
   yp=0;
  }
 }else{
  if(i!=1 && i!=2){
   yp=68;
   xp=_parent["foto"+String(i-2)]._x+68;
  }else{
   yp=68;
   xp=0;
  }
 };
 duplicateMovieClip(_parent.foto,e,i);
 _parent[e]._x = xp;
 _parent[e]._y = yp;
 _parent[e].img._xscale=64;
 _parent[e].img._yscale=64;
 _parent[e].n=i;
 _parent[e].dataa=dataa*;
 _parent[e].link=link*;
 
};
//
}

```

A little push in the right direction would do me good please.  
:flower:
