3 Replies Latest reply on May 9, 2009 9:23 PM by kglad

    Pre-Loader Skips to Wrong Frame


      This is a bit of an odd-ball problem. I've created a website 524 frames long, but am creating the pre-load bar *after* the website is done. I could move all the frames a few over, but this would require remapping all my many, many buttons. What I've done then, is told Frame 1 to go to Frame 525, and put the preloader there. I should note the site works perfectly without the pre-loader, I just want it to be smooth once it makes it online.

      The following code is being used for the first frame (frame 525) of the pre-loader:

      bytes_loaded = Math.round(this.getBytesLoaded());
      bytes_total = Math.round(this.getBytesTotal());
      getPercent = bytes_loaded/bytes_total;
      this.loadBar._width = getPercent*100;
      this.loadText = Math.round(getPercent*100)+"%";
      if (bytes_loaded == bytes_total) {

      The following code is being used for the second frame (frame 526) of the pre-loader:


      Now, for some inexplicable reason, my site starts at frame 390 and I never see the load bar. Again, without the script on Frame 1 (a simple "gotoAndPlay(525);") the site works perfectly fine.


      Any help someone could give would be appreciated.