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
The XML is here:
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!!!