4 Replies Latest reply: Jul 21, 2012 7:37 AM by oknishan RSS

    Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.Error #2044: Unhandled

    Alliean

      I write this script for loader and it gives an error

      Idon't know where is the mistake.

      so please help me to sort out the error.

      Thanks in Advanced

       

      This is the Script

       

      stop();

       

      addEventListener(Event.ENTER_FRAME, preLoad);
      function preLoad(event:Event):void{
          var bytestoLoad:Number = loaderInfo.bytesTotal;
          var numberLoaded:Number = loaderInfo.bytesLoaded;
          if(bytestoLoad == numberLoaded){
              removeEventListener(Event.ENTER_FRAME, preLoad);
              gotoAndPlay(2);

       

          }else{
              preLoader.preLoaderFill.scaleX = numberLoaded/bytestoLoad;
          }
      }