7 Replies Latest reply on Sep 3, 2007 7:48 AM by kglad

    preloader problem

    Larryr3
      I am having a problem finding an error in my preloader code.
      This is the error message :

      **Error** Scene=Preloader, layer=Layer 1, frame=1:Line 6: ')' expected
      var progress = Math.round (100 * (_framesloaded / _ totalframes));

      Total ActionScript Errors: 1 Reported Errors: 1

      This is the code :

      1 if(_totalframes > 0) {
      2 if (_framesloaded == _totalframes) {
      3 // finished loading
      4 gotoAndPlay(1);
      5 } else {
      6 var progress = Math.round (100 * (_framesloaded / _ totalframes));
      7 ProgressBar.gotoAndStop(progess);
      8 }

      I don't see any place for ")" on line 6

      larryr3