11 Replies Latest reply on Jun 28, 2011 3:12 PM by Ned Murphy

    Preloader

    STGraffix2010

      Adobe Flash CS3
      Action Script 1.0 & 2.0

       

      Hello, Im just almost done with my site. Just put in a preloader in the 1st scene of my site, and this is the script I put in:

      stop();

      addEventListener(Event.ENTER_FRAME, loading);

      function loading(e:Event):void{
      var total_bytes:Number = this.stage.loaderInfo.bytesTotal;
      var loaded_bytes:Number = this.stage.loaderInfo.bytesLoaded;
      rectangle_clip.scaleX = loaded_bytes/total_bytes;
      text_clip.text = Math.floor((loaded_bytes/total_bytes)*100)+="%";
      if (total_bytes==loaded_bytes){
        gotoAndPlay(2);
        this.removeEventListener(Event.ENTER_FRAME, preload1);
      }
      }

       

      Went to go test my site, this is the error message I got:

      AS_Error.JPG

       

      Why am I getting these error messages? Any help would be appreciated. Thanks