# Exponential loading problem

**URL:** <https://forum.kirupa.com/t/exponential-loading-problem/238643>\
**Category:** Uncategorized\
**Created:** [September 13, 2007, 3:32pm UTC](https://forum.kirupa.com/t/exponential-loading-problem/238643 "2007-09-13T15:32:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [September 13, 2007, 3:32pm UTC](https://forum.kirupa.com/t/exponential-loading-problem/238643/1 "2007-09-13T15:32:12Z")

</div>

hello,

my code for my slide show starts off fine, but then it begins to load the images exponentially rather than just one at a time…

i am using a tween class for the alpha fading (alphaTo) …

my code is:  
var slide:Array = new Array ("…/images/gallery/slides/slide1.jpg","…/images/gallery/slides/slide2.jpg","…/images/gallery/slides/slide3.jpg","…/images/gallery/slides/slide4.jpg","…/images/gallery/slides/slide5.jpg","…/images/gallery/slides/slide6.jpg","…/images/gallery/slides/slide7.jpg");

function show(){  
var ran:Number = Math.random()_6;  
var i:Number = Math.ceil(ran);  
\_root.slide\_mc.loadMovie(slide_);  
slide\_mc.alphaTo(100,2,“easeinSine”,2);  
slide\_mc.alphaTo(0,4,“easeinSine”,8);  
setInterval(show,16000);  
trace(slide\*);  
}  
show();

can anyone spot what’s going wrong?

thanks!
