When a sound file or video file is playing back while its data
is still being loaded, it is said to be
sound files that are loaded from a remote server are often streamed
so that the user doesn’t have to wait for all the sound data to load
before listening to the sound.
the number of milliseconds of sound data that Flash Player or AIR
should gather before letting the sound play. In other words, if
property is set to 5000, Flash Player
or AIR loads at least 5000 milliseconds worth of data from the sound
file before the sound begins to play. The default
Your application can override the global
for an individual sound by explicitly specifying a new
when loading the sound. To override the default buffer time, first
create a new instance of the SoundLoaderContext class, set its
and then pass it as a parameter to the
as shown below:
var s:Sound = new Sound();
var req:URLRequest = new URLRequest("bigSound.mp3");
var context:SoundLoaderContext = new SoundLoaderContext(8000, true);
As playback continues, Flash Player and AIR try to keep the sound
buffer at the same size or greater. If the sound data loads faster
than the playback speed, playback will continue without interruption.
However, if the data loading rate slows down because of network
limitations, the playhead could reach the end of the sound buffer.
If this happens, playback is suspended, though it automatically resumes
once more sound data has been loaded.
To find out if playback is suspended because Flash Player or
AIR is waiting for data to load, use the