# Actionscript/XML Help Needed - Download Link or Pop-up!

**URL:** https://forum.kirupa.com/t/actionscript-xml-help-needed-download-link-or-pop-up/202915
**Category:** flash
**Created:** [October 5, 2006, 7:50pm UTC](https://forum.kirupa.com/t/actionscript-xml-help-needed-download-link-or-pop-up/202915 "2006-10-05T19:50:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sleepy\_kisser](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@sleepy\_kisser](https://forum.kirupa.com/u/sleepy_kisser)
#### Post date: [October 5, 2006, 7:50pm UTC](https://forum.kirupa.com/t/actionscript-xml-help-needed-download-link-or-pop-up/202915/1 "2006-10-05T19:50:41Z")

</div>

I have hit so many walls with this today. I have an mp3 player built that works great except the fact that my client does not want to lose the download functionality. I am trying to pull the mp3 file’s source from the xml doc and link out to a regular pop-up window holding the mp3 file to play externally. This is step one.

From there I need to either zip the files and link to them for download or preferably find a way to link to the mp3 files directly for download bypassing the browser’s built in player.

At the moment I am using a typical button with an instance name for linking.

Can anyone give me a hand with this? I am completely lost at this point.

The actionscript file is located here:  
[http://www.foursquarestudios.com/mp3player/aud-music.as](http://www.foursquarestudios.com/mp3player/aud-music.as)

The XML is here:  
[http://www.foursquarestudios.com/mp3player/music\_playlist.xml](http://www.foursquarestudios.com/mp3player/music_playlist.xml)

CODE SNIPPETS:  
[COLOR=“Gray”]// Send xml node information to snd.loadSound …  
song\_mc.select\_btn.onRelease = function() {  
if (!this.\_parent.moved) {  
SetSong(this.\_parent.node);  
}  
};

// Grabs URL from XML node to play …  
snd.loadSound = function(url) {  
this.\_sound.loadSound(url, true);  
stop\_btn.onRelease();  
this.updateTime();  
};[/COLOR]

Those two snippets of code are what move the XML data around. I need to get the URL of the mp3 from this and make things wonderful.

Thank you so much!!!
