Strange problem

Hello all, I did not know how to define the problem better, therefore the title.

I am doing a slideshow with a full screen view. The images are relatively heavy (300k) because they will fit the whole screen; different images will load corresponding to the screen size. In order to decrease waiting time I have tried loading one after the other and setting the alpha property of their corresponding movieclips to 0. When the user clicks on the picture it fades out and a new one fades in.

Locally it all works fine but on the server it will only load 19 images out of 28. After the 19th nothing happens. Been trying to figure out why the whole day. Maybe you guys can give me some useful tips as to why this might be happening.

Any help would be much appreciated. :slight_smile:

package app{

//all imports here

    public class Slideshow extends MovieClip {

        private var fondo:Sprite=new Sprite  ;
        private var myXML:XML;
        private var section:String;
        private var button:MovieClip=null;
        private var mcs:Array = new Array();
        private var loaderArr:Array = new Array();
         
        private var s:Number=0;
        private var total:Number=0;
        private  var count:Number=0;

        public function Slideshow(xml,cp, my_total) {
          
            for (var i:int = 0; i<my_total; i++) {

                mcs*=new MovieClip  ;
                addChildAt(mcs*,1);
                mcs*.name="mc"+i;
                mcs*.alpha=0;
                mcs*.buttonMode=true;
                mcs[0].addEventListener(MouseEvent.CLICK, nextSlides);
                loaderArr*=new Loader  ;
                loaderArr*.name="ldr"+i;
                mcs*.addChild(loaderArr*);

            }

            startLoading();

        }


        private function startLoading():void {
            
            loaderArr[s].load(new URLRequest(myXML[section].IMAGE.XXX[s]));
            loaderArr[s].contentLoaderInfo.addEventListener(Event.COMPLETE, bulkLoading);

        }


        private function bulkLoading(e:Event):void {

            if (s==0) {
                fadeIn(mcs[0]);
            }

            s++;
            
            if (s<total) {
                startLoading();
            }
        }


        private function fadeIn(mc):void {
            TweenFilterLite.to(mc, 1, {alpha:1});
        }


        private function nextSlides(e:MouseEvent):void {
            count++;
            button=MovieClip(e.currentTarget);
            TweenFilterLite.to(button, 1, {alpha:0, onComplete:nextSlides2, onCompleteParams:[button]});            
            TweenFilterLite.to(mcs[count], 1, {alpha:1});
        }

        private function nextSlides2(button):void {
            mcs[count].addEventListener(MouseEvent.CLICK, nextSlides);
            removeChild(button);
        }

    }

}