11 Replies Latest reply on Jun 8, 2006 8:37 AM by gold987987987

    PreLoaderBar Error

    gold987987987 Level 1
      I have a swf and I had to start publishing it from FP7 to FP8. I also had to switch from ActionScript 1.0 to 2.0.
      I get the following error when testing the movie in FLASH PRO 8:
      **Error** Scene=preloader, layer=Layer 1, frame=1:Line 5: Syntax error.
      _root.PreLoaderBar.PercentL = String(int(p)) add "%";

      Total ActionScript Errors: 1 Reported Errors: 1

      The Action Script looks like this:
      t = this.getBytesTotal();
      l = this.getBytesLoaded();
      p = l/t*100;
      _root.PreLoaderBar.gotoAndStop (Math.round(p/1)+1);
      _root.PreLoaderBar.PercentL = String(int(p)) add "%";

      Does anyone know whats going on with this? I really need to get this preloader runnning again.