1 Reply Latest reply on Oct 29, 2007 7:28 AM by kglad

    Problem with my Prelopader!!!!!!!!!!!!!!!!!!! MX2004

    macromike
      I have a preloader that I have used many times in MX. I am now trying to use it in MX 2004 and am getting errors. Can anyone tell me how to fix it. Below are the scripts and the error.


      (FRAME 1)

      totalbytes = /:getBytesTotal();
      loadedbytes = /:getBytesLoaded();
      loadedpercent = int ((loadedbytes/totalbytes)*100);
      setProperty("bar", _xscale, /:loadedpercent);

      **Error** Scene=Preloader, layer=Layer 2, frame=1:Line 1: Operator '=' must be followed by an operand
      totalbytes = /:getBytesTotal();

      **Error** Scene=Preloader, layer=Layer 2, frame=1:Line 2: Operator '=' must be followed by an operand
      loadedbytes = /:getBytesLoaded();

      **Error** Scene=Preloader, layer=Layer 2, frame=1:Line 3: Unexpected '/' encountered
      loadedpercent = int ((loadedbytes/totalbytes)*100); setProperty("bar", _xscale, /:loadedpercent);

      Total ActionScript Errors: 3 Reported Errors: 3

      (FRAME 2) Text Text