0 Replies Latest reply on May 24, 2006 2:40 PM by Newsgroup_User

    About load

    Level 7
      Hello

      I do that for control my movieclip
      but I dont know why immeditly I have perc = 100 I need to put a test bt
      > 100 for dont gotoandstop(2)
      Please could you tell me why ?


      stop();
      this.onEnterFrame = function () {
      this.bt = this.clip.getBytesTotal();
      this.bl = this.clip.getBytesLoaded();
      this.perc = Math.floor((this.bl/this.bt)*100);
      setProperty("progress", _xscale, perc);
      this.percent = this.perc + "%";
      if (this.perc == 100 and this.bt > 100) {
      gotoAndStop(2);
      }
      }
      this.clip.loadMovie("dessin.swf");

      Thank you for your help