# XML and gallery... another Question?

**URL:** <https://forum.kirupa.com/t/xml-and-gallery-another-question/157865>\
**Category:** programming\
**Created:** [August 4, 2005, 8:24pm UTC](https://forum.kirupa.com/t/xml-and-gallery-another-question/157865 "2005-08-04T20:24:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daze13](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@daze13](https://forum.kirupa.com/u/daze13)\
**Post date:** [August 4, 2005, 8:24pm UTC](https://forum.kirupa.com/t/xml-and-gallery-another-question/157865/1 "2005-08-04T20:24:14Z")

</div>

Hi ever1.

I have been playing with the xml gallery  
[http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)

what I want to do is add sound to each slide/picture that loads…  
currently my XML looks something like this

> 

\<images\>  
\<pic\>  
\<image\>myimages.jpg\</image\>  
\<caption\>my image caption\</caption\>  
\<audio\>myaudio.mp3\</audio\>  
\</pic\>  
\</images\>

I can’t get the mp3 to load and play!:huh:  
I have made an empty MC called “audio\_mc”  
but still doesn’t play the audio  
I know i have to make some sort of function that will load and play the audio inside audio\_mc but I can seem to wrap my hand around it…

the only way I know how to import dynamic audio is this way

> sound = new Sound();  
> sound.loadSound( “test1.mp3”, true);  
> sound.play();

how do I apply this method with xml?  
so it works like the images in the gallery.
