A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: external mp3 looping

  1. #1
    Junior Member
    Join Date
    Feb 2004
    Posts
    8

    external mp3 looping

    hello all!

    need some help on figuring out how to make my external streaming mp3 file loop. I tried a few things but i'm having no luck. here is my code where everything works fine now minus the code for looping.

    thanks for looking.

    houston



    playList = ["url"];

    currentSong = 0;
    maxSongs = playList.length -1;

    function startStreaming(){
    mp3 = new Sound();
    mp3.loadSound(playList[currentSong], true);
    mp3.onSoundComplete = function(){

    currentSong ++;
    if (currentSong > maxSongs){
    currentSong = 0;}

    delete mp3;

    }
    }

    startStreaming();
    stop();
    stop();

  2. #2
    Junior Member
    Join Date
    Feb 2004
    Posts
    8
    got it to work thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center