I can’t manage to load jpg in some duplicated mc. I tried to add the as to the container mc “img”
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.
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: