Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

+ Reply to Thread
Results 1 to 3 of 3

Thread: error #2044

  1. #1

    Default error #2044

    Can someone help me fix this error, please?

    Error in detail:
    Code:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
        at Mp3Player_fla::MyMp3Player_1/frame3()
        at flash.display::MovieClip/gotoAndStop()
        at Mp3Player_fla::MyMp3Player_1/xmlLoaded()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/onComplete()
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
        at Mp3Player_fla::MyMp3Player_1/frame3()
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
        at Mp3Player_fla::MyMp3Player_1/frame3()
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
        at Mp3Player_fla::MyMp3Player_1/frame3()
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
        at Mp3Player_fla::MyMp3Player_1/frame3()
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
        at Mp3Player_fla::MyMp3Player_1/frame3()
    Frame 3 code:
    Code:
    // CODE FOR FRAME 3
    ////////////////////////////////////////
    stop();
    var snd:Sound = new Sound();
    var channel:SoundChannel;
    var context:SoundLoaderContext = new SoundLoaderContext(5000, true);
    snd.load(songURL, context);
    channel = snd.play(pausePosition); // Start playing
    // Playlist item click listener
    List.addEventListener(Event.CHANGE, itemClick);
    // Playlist item click function
    function itemClick (event:Event):void {
    channel.stop(); // stop play
    status_txt.text = "Now Playing: " + event.target.selectedItem.label + ".mp3";
    trackToPlay = event.target.selectedItem.songString;
    gotoAndPlay(2);
    }
    
    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // Stop Button Listener
    stop_btn.addEventListener(MouseEvent.CLICK, stopPlayer);
    // Stop Button Function
    function stopPlayer (event:MouseEvent):void {
    channel.stop();
    }
    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // Event Listener for sound complete when any song finishes
    channel.addEventListener(Event.SOUND_COMPLETE, onCompletePlayback);
    // Function inSoundComplete
    function onCompletePlayback (event:Event):void {
    newTrack();
    }
    // New track play function
    function newTrack():void {
    if (List.selectedItem.songNum == i) { // if songNum == total track amount
    channel.stop(); // stop the player
    var selectFirst = new Array (0,0); // array for cell select
    List.selectedIndices = selectFirst; // This selects song 1
    trackToPlay = List.selectedItem.songString; // Define New track to play
    gotoAndPlay(2); // Make the switch and play
    } else {
    channel.stop(); // stop the player
    var sn:uint = List.selectedItem.songNum; // var that has value of current list songNum
    var selectNext = new Array (sn,sn); // array for cell select
    List.selectedIndices = selectNext; // This selects next song in the list component
    trackToPlay = List.selectedItem.songString; // Define New track to play
    gotoAndPlay(2); // Make the switch and play
    }
    // Always set pausePosition back to 0 here
    pausePosition = 0;
    }/// Close newTrack function
    ////////////////////////////////////////////////////////////////////////////////////
    Not sure if any other code would be needed to resolve this. Any replies are grateful.
    Not sure if you need to see the xml, but here it is:
    Code:
    <?xml version="1.0" ?>
    <XML>
      <Song>
        <songArtist>"Tiesto"</songArtist>
        <songTitle>"01 I Will Be Here (Tiesto Remix)"</songTitle>
          </Song>
      <Song>
        <songArtist>"Tiesto"</songArtist>
        <songTitle>"02 Its Not The Things You Say (Ali Wilson Remix)"</songTitle>
          </Song>
      <Song>
        <songArtist>"Tiesto"</songArtist>
        <songTitle>"03 Who Wants To Be Alone (Pillip D Remix)"</songTitle>
      </Song>
    </XML>
    Last edited by Vlykarye; 02-09-2011 at 11:17 PM. Reason: spell checked~

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2

    Default

    Quote Originally Posted by feroc View Post
    Code:
    <?xml version="1.0" ?>
    <XML>
      <Song>
        <songArtist>"Tiesto"</songArtist>
        <songTitle>"01 I Will Be Here (Tiesto Remix)"</songTitle>
          </Song>
      <Song>
        <songArtist>"Tiesto"</songArtist>
        <songTitle>"02 Its Not The Things You Say (Ali Wilson Remix)"</songTitle>
          </Song>
      <Song>
        <songArtist>"Tiesto"</songArtist>
        <songTitle>"03 Who Wants To Be Alone (Pillip D Remix)"</songTitle>
      </Song>
    </XML>
    I figured out what was wrong with this, and it's simpler than what the error looks like.
    On each line, I have quotes ("") around the artist and title. Remove those and I get no errors. Hope this helps if someone else gets this error.
    Last edited by Vlykarye; 02-09-2011 at 11:14 PM. Reason: spell checked~

  4. #3
    Join Date
    May 2003
    Location
    india
    Posts
    200

    Default

    Hi there,

    Of course this will help to other also.

    good work too.

    jeet
    Last edited by Vlykarye; 02-09-2011 at 11:13 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial