1 Reply Latest reply on Feb 16, 2007 7:21 PM by kglad

    preloader only works in player 7

    draap
      I have a preloader for my web site and I want it to show the percent loaded. I could not get the percent to update, the animation for the preloader does work. Finally I tried dropping down from version 8 in the publish settings to version 7 and it works fine. I tried stripping almost every thing out of the site but I still need to drop down to version 7 for the preloader to work. If I start from scratch and build a simple site the same as my stripped down site the preloader will work in version 8.
      Any ideas?

      stop();

      myInterval = setInterval(preload,100);

      function preload() {
      var current = _root.getBytesLoaded();
      var total = _root.getBytesTotal();
      var pctLoaded = Math.round(current/total*100);
      pct_txt.text = pctLoaded;

      if (current >= total) {
      gotoAndPlay("main",1);
      clearInterval(myInterval);
      }
      }