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();
} } }
Related Scripts with Example Source Code in same category :