Buffering a Streaming Sound : Sound : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » Sound »

 

Buffering a Streaming Sound


 

package{
    import flash.display.Sprite;
    import flash.media.*;
    import flash.events.*;
    import flash.net.*;
    import flash.text.*;
  public class Main extends Sprite{
    public function Main(){
        var context:SoundLoaderContext = new SoundLoaderContext();
        context.bufferTime = 10000// set buffer time to 10 seconds.
        var song:Sound = new Sound(new URLRequest("http://losdesigns.com/music/robotPicksFlowers.mp3"), context);
        song.play();

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Development
» Sound