6 Replies Latest reply on Sep 19, 2009 9:14 AM by kglad

    Sequentially pre-load images

    AESS1981 Level 1

      I the main timeline of my movie, I am trying to trace the loading progress of '1.swf', then once it has fully loaded, load '2.swf' into mc 'preload2'.

      The following is not working:

       

       

      preload1.loadMovie("portfolio/100_design/1.swf");

      onEnterFrame = loadMeter;

       

      MovieClip.prototype.loadMeter = function() {

      var i, l, t;

      l = preload1.getBytesLoaded();

      t = preload1.getBytesTotal();

      if (t>0 && t == l) {

      preload2.loadMovie("portfolio/100_design/2.swf");

      } else {

      trace(l/t);

      }

      };

       

       

      Any ideas where I am going wrong?

      Thank you