Check if song is buffering in AS3
Posted
by SXMC
on Stack Overflow
See other posts from Stack Overflow
or by SXMC
Published on 2010-06-08T14:05:56Z
Indexed on
2010/06/09
2:12 UTC
Read the original article
Hit count: 281
I have the following piece of code:
var song:Sound;
var sndChannel:SoundChannel;
var context:SoundLoaderContext = new SoundLoaderContext(2000);
function songLoad():void {
song.load(new URLRequest(songs[selected]),context);
sndChannel = song.play();
}
Now I want to be able to check if the song is buffering or not. Is there a way to do this? Or should I approach it differently?
Thanks in advance!
© Stack Overflow or respective owner