# How to load sound dynamically?

**URL:** https://forum.kirupa.com/t/how-to-load-sound-dynamically/210017
**Category:** Uncategorized
**Created:** [December 14, 2006, 3:46am UTC](https://forum.kirupa.com/t/how-to-load-sound-dynamically/210017 "2006-12-14T03:46:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![foxandsoul](https://avatars.discourse-cdn.com/v4/letter/f/0ea827/32.png) [@foxandsoul](https://forum.kirupa.com/u/foxandsoul)
#### Post date: [December 14, 2006, 3:46am UTC](https://forum.kirupa.com/t/how-to-load-sound-dynamically/210017/1 "2006-12-14T03:46:11Z")

</div>

Is there a way to load sound into swf dynamically and loop it?  
I found this tutorial on this site: [http://www.kirupa.com/developer/mx/loading.htm](http://www.kirupa.com/developer/mx/loading.htm)  
it gives the following code:

mySound = new Sound();  
mySound.loadSound(“music.mp3”,true);

It works perfectly, but I don’t know how to make it loop.  
Thanks
