Adobe Flash – 25 Posted by pwano in Adobe Flash and tagged with Actionscript 3, Actionscript 3.0, Adobe, Adobe Video, Adobe VIdeos, as3, Build Simple Sound Player & Load Sounds AS 3, learning Adobe Flash, learning Flash, Web Design June 21, 2008 ::::::::::: Build Simple Sound Player & Load Sounds AS 3 Like this:LikeBe the first to like this post.
But what happens if the sound is a big file? How do we handle its loading? I tried to use the same method shown in this video and the file played the sound VERY slowly. Thanks for helping Reply
You can buffer a few seconds and then start playing before the whole song is loaded. var context:SoundLoaderContext = new SoundLoaderContext(2000, false); //set up for buffer 2 seconds thisSound.load(reqSound, context); Reply
nice!
But what happens if the sound is a big file? How do we handle its loading?
I tried to use the same method shown in this video and the file played the sound VERY slowly.
Thanks for helping
sorry, but it depends on the host server
You can buffer a few seconds and then start playing before the whole song is loaded.
var context:SoundLoaderContext = new SoundLoaderContext(2000, false); //set up for buffer 2 seconds
thisSound.load(reqSound, context);
Very cool and helpful!
Pingback: Tutorials Sound » curlingthebrackets