22 Replies Latest reply on Apr 17, 2009 3:25 PM by kglad

    Load Bar shows itself at 100%

    goalpost95 Level 1

      Before my load bar begins to load and go to 100% it shows itself at 100% and then returns to 0% and then begins the count back up, how do I not have it show the bar at 100% before it begins to load

       

      Here is the code

       

      myLoaded = Math.round(getBytesLoaded());

      myTotal = Math.round(getBytesTotal());

      myPercent = myLoaded/myTotal;

      myBar._width = myPercent*408;

      myText = Math.round(myPercent*100)+"%";

      if (myLoaded == myTotal) {

          gotoAndPlay(4);

      } else {

          gotoAndPlay(2);

      }

       

      the code is on the 2nd frame and I have the bar on the first frame.  I've tried to place code on the first frame with the bar and change the code to go back to the first frame to load it but then the load bar no longer works.