3 Replies Latest reply on Mar 18, 2007 8:00 PM by kglad

    array movieloader?

    jagguy99 Level 1
      This program works with a rotating image with 3 pictures.

      q) How can I use an array for declaring this variable for 'X' number of these

      var this["mLoad"+2]:MovieClipLoader= new MovieClipLoader();


      q0 Is there an easier way to load an 'X' number of pictures like i have done?
        • 1. Re: array movieloader?
          kglad Adobe Community Professional & MVP
          :

          • 2. Re: array movieloader?
            jagguy99 Level 1
            Hi

            Thanks for the reply. I don't really understand the need for the lo object. If you do this then every MC has a timer which is not what i want. So what goes in that function and why do I need it?

            lo = new Object();
            lo.onLoadInit = function(target) {
            // initiate your fade loop for target
            tum=setInterval(fade,50,0,1); //calls for every
            };
            for (var i = 1; i<aval.length; i++) {
            this["mLoad"+i] = new MovieClipLoader();
            this.createEmptyMovieClip("mc"+i, this.getNextHighestDepth());
            this["mLoad"+i].addListener(lo);
            this["mLoad"+i].loadClip(aval , this["mc"+i]);
            }
            • 3. Re: array movieloader?
              kglad Adobe Community Professional & MVP
              you need it to determine when your images have completed loading and are ready to fade. but if you don't care whether that fade loop is doing anything visible to your users, you can elimate every line of code that contains lo.