1 Reply Latest reply on Jul 24, 2006 11:16 AM by Nickels55

    How do I start my animation before the whole thing is loaded?

    swissgrid

      Hi, I'd like my animation to start after about 20% is loaded. I don't need a counter that shows the percentage (I'll just use a little graphic status bar). I just want it to start earlier (on some machines it takes close to a minute to load). Below is the code I have in the first frame to run my status bar while it loads. However, how can I alter it to load only 20% before starting?

      stop();
      this.onEnterFrame = function () {
      bl = this.getBytesLoaded();
      bt = this.getBytesTotal();
      if (bt <= 0) {bt = 99;}
      offPreloader.gotoAndStop(Math.floor((bl / bt) * 100));
      preload_txt.text = Math.round((bl / bt) * 100) + " %";
      if ((bl == bt) && (bt > 0)) {
      delete this.onEnterFrame;
      gotoAndPlay (3);

      }
      };