LOading dynamic images

Hello…i know there been a lot of poasts on this but none of them help me.

I am duplicating a movie clip called “thumb” on my main timeline.

they are named by number (1 to 233)

within each clip i would like to load an image


if(_name != “thumb”){

var webby =_name.toString()
var webby="thumb/"+webby;
loadMovie(10.jpg,this);
trace(this)

}


the reason i have put in 10.jpg is just to get it loading one image into all clips.

But its not loading the image into any.

the trace is bringin back each MC’s name fine

when i remove the if(_name != “thumb”){

it loads the image into the duplicated original MC

so im completely confused.

this is the duplication script on the first frame of my Main timeline


thumb._visible=0;
var imageTot=233;
var starty=0;
var vSpace=30;
var hSpace=40;
var rows=10;
var j=1;
var k=1;

for(i=1 ; i<=imageTot ; i++){
j++;
duplicateMovieClip(thumb,i+".jpg",i+50);
_root[i+".jpg"]._y=starty+(vSpacej)
_root[i+".jpg"]._x=startx+(k
hSpace)
if(j>rows){
j=1;
k++;
}
}


Any help would be appreciated

Alex

Welcome!
Are you using MX or flash 5?

pom :slight_smile:

got it workin

thanks for looking though pom

:asian: