# \[Problem\] with loadMovie jpeg

**URL:** <https://forum.kirupa.com/t/problem-with-loadmovie-jpeg/66202>\
**Category:** programming\
**Created:** [October 3, 2004, 10:55pm UTC](https://forum.kirupa.com/t/problem-with-loadmovie-jpeg/66202 "2004-10-03T22:55:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CoolDuck](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@CoolDuck](https://forum.kirupa.com/u/CoolDuck)\
**Post date:** [October 3, 2004, 10:55pm UTC](https://forum.kirupa.com/t/problem-with-loadmovie-jpeg/66202/1 "2004-10-03T22:55:00Z")

</div>

Hi, I’m building a Flash website that uses MySQL a lot…  
When you click on the first model on the site, there appears 2 thumbnails (black squares) when you click the 1st one, the pic loads, with preloader, but the second one doesn’t, although the path is correct and the image is on the server. What could be wrong?

Here’s the mockup in progress:  
[http://www.eyecatchers-models.com/v1/](http://www.eyecatchers-models.com/v1/)

When you click on the thumbnail I use this script:

```php

var ob = this["mc_picture"];
var id = _root.flash_modelID;
	
var path = _root.array_modellist_firstname[id]+_root.array_modellist_surname[id]+"/";
var filename = _root.array_modellist_firstname[id]+_root.array_modellist_surname[id]+who.internalID_pics+".jpg";
var picToLoad = "gallery/models/"+path+filename;
	
bla.text=picToLoad;
	
ob.holder._alpha = 0;
ob.holder.loadMovie(picToLoad);

```

On the root also this:

```php

this.onEnterFrame = function() {
	// picture preloader
	var obPic = this["mc_picture"];
	var filesize = obPic.holder.getBytesTotal();
	var loaded = obPic.holder.getBytesLoaded();
	
	obPic.preloader._visible = true;
	
	if (loaded != filesize) {
		obPic.preloader.preload_bar._xscale = 100*loaded/filesize;
	} 
	else {
		obPic.preloader._visible = false;
		
		if (obPic.holder._alpha<100) {
			obPic.holder._alpha += 5;
		}
	}
}

```

This is based on Kirupa’s GREAT photogallery tutorial. 😃 (thank you btw for the great tut)

Someone got any ideas? Thx in advance.
