Preloading MP3 files

To preload MP3 file, we can use 'setinterval()' function to create polling mechanism that checks the bytes loaded for a Sound or NetStream object at predetermined intervals. We can use 'Sound.getBytesLoaded()' and 'Sound.getBytesTotal()' methods to track downloading progress of MP3 files.

 

Share this Listing