1 Reply Latest reply on Apr 7, 2007 7:37 AM by kglad

    Loadingbar problem

    sindresorhus
      Hi, thanks for all the help I've gotten.

      I got loader that worked in Flash 6, but now I use Flash 7 and it doesn't work.

      The problem is that it doesn't scale the "pBar", so you can't see the progress.

      Can anybody see what I have to do?

      Frame 1:
      setProperty("pBar",_xscale,0);
      var iBytesTotal = _root.getBytesTotal();
      var iBytesLoaded = _root.getBytesLoaded();
      var iBytes = (iBytesLoaded/iBytesTotal)*100;
      pBar._xscale=iBytes

      Frame 2:
      if (iBytes<100) {
      gotoAndPlay(1);
      } else {
      gotoAndPlay("Game", "menu");
      }