3 Replies Latest reply on Feb 4, 2010 9:29 AM by kglad

    Trouble with Looping buffered sound

    DraconianDevil

      Hello there.

      first of all, sorry if a similar topic exists elsewhere, I tried searching everything but couldnt put a finger on what I wanted so I'm making this topic.

       

      I am learning flash at home with the help of Internet. I am experimenting with some sound files. I am loading them as follows:

       

       

      sound2 = new Sound(soundLoader);
      sound2.loadSound("sounds/beats2.mp3",true);
      sound2.onLoad = function(success:Boolean) {
           if (success) {
                // trace("loaded");
                sound2.start(0,999);
                //trace("looped");
           }
      };
      

       

      It works fine, only, The sound is not looping. Initially, I thought there is a trouble with my coding and after some tracing, I found out that the sound is not looping if it is isStreaming property of .loadSound() method is set to true.

       

      If I do this:

       

      sound2 = new Sound(soundLoader);
      sound2.loadSound("sounds/beats2.mp3",false);
      sound2.onLoad = function(success:Boolean) {
           if (success) {
                // trace("loaded");
                sound2.start(0,999);
                //trace("looped");
           }
      };
      

       

      Then the sound is looping just like it should. But I would really prefer it to be buffered, AND looped.

      Is there any way that I can do this? Am I missing something?

       

      Any help would be appreciated.

      thanks so much!