# AS3, XML & Audio

**URL:** <https://forum.kirupa.com/t/as3-xml-audio/312689>\
**Category:** flash\
**Created:** [August 10, 2010, 5:29pm UTC](https://forum.kirupa.com/t/as3-xml-audio/312689 "2010-08-10T17:29:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oasmat83](https://avatars.discourse-cdn.com/v4/letter/o/bc79bd/32.png) [@oasmat83](https://forum.kirupa.com/u/oasmat83)\
**Post date:** [August 10, 2010, 5:29pm UTC](https://forum.kirupa.com/t/as3-xml-audio/312689/1 "2010-08-10T17:29:32Z")

</div>

Can anyone help me with AS3? I designed about 5 or 6 buttons in Flash CS3 and when pressed I want each button to play a different **audio file** from an **xml file**.

The instance name on the first three buttons I created are “ **PrintAdBtn** ” “ **InOfficeBrochure** ” & “ **starterKit** ”.

The name of the xml file I have is **playlist**.xml.  
This is the xml code.

```auto

<?xml version="1.0" encoding="utf-8"?>
   <PLAYLIST>  
     <SONG URL="audio/print ad.mp3">  
     <SONG URL="audio/In-Office brochure.mp3" >  
     <SONG URL="audio/starter kit.mp3">
  </PLAYLIST>

```

Thank you
