# Load .mp3 dynamically with Flash MX

**URL:** https://forum.kirupa.com/t/load-mp3-dynamically-with-flash-mx/189751
**Category:** Uncategorized
**Created:** [June 6, 2006, 12:19am UTC](https://forum.kirupa.com/t/load-mp3-dynamically-with-flash-mx/189751 "2006-06-06T00:19:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nath\_y](https://avatars.discourse-cdn.com/v4/letter/n/b9e5f3/32.png) [@nath\_y](https://forum.kirupa.com/u/nath_y)
#### Post date: [June 6, 2006, 12:19am UTC](https://forum.kirupa.com/t/load-mp3-dynamically-with-flash-mx/189751/1 "2006-06-06T00:19:55Z")

</div>

I can load an .mp3 dynamically (streaming) but I would please please like to know how I could some some sort of a preloader which shows how much sound has been loaded so far.

I think it has something to do with knowing the "getBytesLoaded() and getBytesTotal() of the sound that is loaded.

An example is here: [http://www.gmg.com.au/assets/tutorials/flash-mx-audio/index.html](http://www.gmg.com.au/assets/tutorials/flash-mx-audio/index.html)

The commentry/audio is playing in the background and there is an animation which shows how much sound has loaded.

If you could point me in the right direction, I could try it myself.

I know you have to create a movie clip and set movieclip.width = totalbytes loaded etc something like that…

Please help me out…
