3 Replies Latest reply on May 6, 2008 2:07 PM by german01

    Preloader from flash player 6 to 8

    german01
      I have a preloader movie clip named preloader.
      Using flash player 6 the preloader works fine.

      Here is the code

      onClipEvent (enterFrame) {
      loading = _root.getBytesLoaded();
      total = _root.getBytesTotal();
      percent -= (percent-((loading/total)*100))*.25;
      per = int(percent);
      percentage = per+"%";
      loadBar._width = per*1.5;
      if (percent>99) {
      _root.gotoAndStop("t");
      }
      }


      However, when updating my flahs player from 6 to 8, the preloader doesn't work anymore. What's the new code for preloaders in flash 8 or later?