Skip navigation
Alliean
Currently Being Moderated

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

Jul 1, 2011 2:43 AM

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;
    }
}

 
Replies
  • Currently Being Moderated
    Jul 1, 2011 2:50 AM   in reply to Alliean

    Just change your gotoAndPlay(2) to play();

     

    Try with:

    stop();
    this.addEventListener(Event.ENTER_FRAME, loading);
    function loading(e:Event):void{
        var total:Number = this.stage.loaderInfo.bytesTotal;
        var loaded:Number = this.stage.loaderInfo.bytesLoaded;
        if (total == loaded){
            play();
            ploader.visible=false;
            this.removeEventListener(Event.ENTER_FRAME, loading);
        }
    }

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 1, 2011 4:21 AM   in reply to Alliean

    It will work, might be some other problem. can you send the file relaxatraja@aol.com to have a look.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 21, 2012 7:37 AM   in reply to Alliean

    Hi guys,

     

    Even I'm having the same problem..The coding compiles fine but the moment I change the broadband speed to check the preloader I get an error saying "Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed."...

     

    This is my Coding..

     

    import flash.events.Event;

     

    stop();

     

    addEventListener(Event.ENTER_FRAME, LoaderF);

     

    function LoaderF(e:Event):void {

              var toLoad:Number = loaderInfo.bytesTotal;

              var Loaded:Number = loaderInfo.bytesLoaded;

              var total:Number = Loaded/toLoad;

              if (Loaded == toLoad){

                        removeEventListener(Event.ENTER_FRAME, LoaderF);

                        gotoAndStop(2);

              } else {

                        Preloader_Mc.McPreloaderFill.scaleX = total;

                        Preloader_Mc.Percent_txt.text = Math.floor(total*100)+"%";

              }

     

    }

     

    And the Percentage_txt(it is a Dynamic text where the percentage completed shows) dosen't work as well..

     

    Any Solution ???

     

    - Nishan

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points