# Dynamically loading sounds and movies

**URL:** <https://forum.kirupa.com/t/dynamically-loading-sounds-and-movies/186651>\
**Category:** flash\
**Created:** [April 23, 2006, 8:43am UTC](https://forum.kirupa.com/t/dynamically-loading-sounds-and-movies/186651 "2006-04-23T08:43:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![foodpk](https://avatars.discourse-cdn.com/v4/letter/f/0ea827/32.png) [@foodpk](https://forum.kirupa.com/u/foodpk)\
**Post date:** [April 23, 2006, 8:43am UTC](https://forum.kirupa.com/t/dynamically-loading-sounds-and-movies/186651/1 "2006-04-23T08:43:11Z")

</div>

Hi!  
I haven’t seriously done flash for a while now because I’ve focused more on other things and I’m now a bit out of the flow when it comes to Flash 8. Now, previously I had made an image viewer by making a PHP file parse the contents of a folder to XML and then a swf file interpreted the XML and dynamically loaded any images etc. Here’s the thing in action [http://blippo.addr.com/img](http://blippo.addr.com/img)  
Pretty cool. Now what I’d like to do is also expand that so it’s able to dynamically load sounds and movies too. So if you click on a picture there it loads it and if you click on a sounds, it plays it. Now, can anyone point me to some functions, tutorials or existing code of the best way to dynamically load sounds and movies? Basically anything you can find helps. Thanks a lot.

---

<div class="post-metadata">

**Author:** ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Post date:** [April 23, 2006, 10:13am UTC](https://forum.kirupa.com/t/dynamically-loading-sounds-and-movies/186651/2 "2006-04-23T10:13:14Z")

</div>

Look into Sound.loadSound and MovieClip.loadMovie in the help file C:-)

---

<div class="post-metadata">

**Author:** ![foodpk](https://avatars.discourse-cdn.com/v4/letter/f/0ea827/32.png) [@foodpk](https://forum.kirupa.com/u/foodpk)\
**Post date:** [April 23, 2006, 11:32am UTC](https://forum.kirupa.com/t/dynamically-loading-sounds-and-movies/186651/3 "2006-04-23T11:32:18Z")

</div>

Sound.loadSound, will do. I know how to load swf files lol :D, I meant loading mpegs and wmv movies.
