# Loading external JPGs, urgent again :\\

**URL:** https://forum.kirupa.com/t/loading-external-jpgs-urgent-again/129187
**Category:** Uncategorized
**Created:** [November 20, 2004, 6:59pm UTC](https://forum.kirupa.com/t/loading-external-jpgs-urgent-again/129187 "2004-11-20T18:59:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mprzybylski](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mprzybylski/32/613_2.png) [@mprzybylski](https://forum.kirupa.com/u/mprzybylski)
#### Post date: [November 20, 2004, 6:59pm UTC](https://forum.kirupa.com/t/loading-external-jpgs-urgent-again/129187/1 "2004-11-20T18:59:32Z")

</div>

hey guys,  
im going insane here looking at this code. i need the thumbnails to load up the larger version of the images in the container movie clip, but its not diong it, when i click the thumb on the right nothing happens.

here is the code i have for the first frame of the movie:

```auto
numimages = 24;
// T is the clip inside slider that is masked (itholds thethumbs)
imgdir = 'imgs';
function loadImage(id){
	imgloadin.loadMovie(imgdir+'/img'+id+'.jpg');
}

for(i=0;i<numimages;i++){s
	slider.T.attachMovie('thumbclip','thumb'+i,i);
	slider.T['thumb'+i].id = i;
	slider.T['thumb'+i]._x = 5;
	slider.T['thumb'+i]._y = 5+55*i;
	slider.T['thumb'+i].loadin.loadMovie(imgdir+'/img'+i+'thumb.jpg');
}
scroller.createEmptyMovieClip('donkey',1);

scroller.doPress = function(){
	this.startDrag(false,this._x,65,this._x,285);
	this.donkey.onEnterFrame = function(){
		slider.T._y = 10 -Math.floor(slider.T._height-240)*(scroller._y-65)/(220)
	}
}
scroller.doRelease = function(){
	this.stopDrag();
	delete this.donkey.onEnterFrame;	
}

```

and here is the code on the linked thumbclip:

```auto
on(release){
	loadImage(id);
	_parent['thumb'+_parent.selected].whitebord._alpha = 100;
	_parent['thumb'+_parent.selected].gotoAndStop(1);
	_parent.selected = id;
	whitebord._alpha= 70;
}
on(rollOver){
	gotoAndStop(2);
}
on(rollOut, dragOut){
	if(_parent.selected != id)
	gotoAndStop(1);
}

```

thanks in advance for any help offered, i really do appreciate it.
