# Transition Trouble

**URL:** <https://forum.kirupa.com/t/transition-trouble/51855>\
**Category:** flash\
**Created:** [May 17, 2004, 9:47pm UTC](https://forum.kirupa.com/t/transition-trouble/51855 "2004-05-17T21:47:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghjr](https://avatars.discourse-cdn.com/v4/letter/g/dec6dc/32.png) [@ghjr](https://forum.kirupa.com/u/ghjr)\
**Post date:** [May 17, 2004, 9:47pm UTC](https://forum.kirupa.com/t/transition-trouble/51855/1 "2004-05-17T21:47:41Z")

</div>

I’m finishing off client’s website adding in some transitions, but the product gallery section is giving me some trouble. The section has four sections (external SWF’s), one of them being a picture gallery.

PROBLEM: If you click on the picture gallery, and then click on another section without waiting for all the pictures to load, it will just sit there for a while (I’m guessing it still loads up the rest of the pictures).

The code for the picture load is:

```auto
for (i=0; i<90; i++) {
	this.createEmptyMovieClip("clip"+i+"_mc", i+1);
 	this["clip"+i+"_mc"].createEmptyMovieClip("foto_mc", 0);
	this["clip"+i+"_mc"]["foto_mc"].loadhere(0,0,"fotos/pic"+i+".jpg","foto"+i);
	this["clip"+i+"_mc"]._x = x;
	this["clip"+i+"_mc"]._y = y;
}

```

The code to change to a different section looks like this:

```auto

button_loja.onPress = function() {
	unloadMovie(2);
	_root.createEmptyMovieClip("container", 2);
	loadMovie("loja_external.swf", "container");
	container._x = 19.9;
	container._y = 142;
	}

```

Here is the URL just in case (the gallery is the “Produtos” section): [http://www.webstudiojr.com/balaiobrasil](http://www.webstudiojr.com/balaiobrasil)

Thanks!!
