# Loading mp3s dynamically

**URL:** <https://forum.kirupa.com/t/loading-mp3s-dynamically/13504>\
**Category:** Uncategorized\
**Created:** [February 13, 2003, 11:08pm UTC](https://forum.kirupa.com/t/loading-mp3s-dynamically/13504 "2003-02-13T23:08:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tralfazz](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@tralfazz](https://forum.kirupa.com/u/tralfazz)\
**Post date:** [February 13, 2003, 11:08pm UTC](https://forum.kirupa.com/t/loading-mp3s-dynamically/13504/1 "2003-02-13T23:08:09Z")

</div>

Hi, I have built an mp3 player, and when I run it locally on tomcat it works fine. Basically it gets the name of an mp3 from a menu list and loads the mp3 into a sound object using a hardcoded path for the url i.e: “C:/Jakarta/jakarta-tomcat-4.x.x/…” When I try to do this on the server, it is able to populate menu list ok (makes a request to a servlet for an xml response the returns the labels and values for the song titles). The sound does not play though. It appears to be loading, but it does not play. I think that it has to do with the url that I am using. Does anyone have any experence with loading mp3 dynamically on tomcat?

thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 14, 2003, 5:13am UTC](https://forum.kirupa.com/t/loading-mp3s-dynamically/13504/2 "2003-02-14T05:13:58Z")

</div>

Ah this is easy, just re-rout the commands of  
soundLoad: () after you re done, then, Your second comand, go back and then reset the var. Values, and after that just get in to the Loc.Fig(2) and delete the secon val. And then your mp3 thing should run fine…

I am just messing, I have no idea… I just felt I should writte something…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 14, 2003, 5:33am UTC](https://forum.kirupa.com/t/loading-mp3s-dynamically/13504/3 "2003-02-14T05:33:12Z")

</div>

rusianbeer, your joke isnt funny, i know i would be mad if i was looking for an answer and people were poking fun. not trying to be an \*\*\* gole, just a reasonable Mod/

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 14, 2003, 5:35am UTC](https://forum.kirupa.com/t/loading-mp3s-dynamically/13504/4 "2003-02-14T05:35:47Z")

</div>

^I agree with Edwin.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 14, 2003, 1:02pm UTC](https://forum.kirupa.com/t/loading-mp3s-dynamically/13504/5 "2003-02-14T13:02:22Z")

</div>

Hello tralfazz,  
Sorry, I have never used that feature before, so I do not know how to make a dynamically loaded MP3 play. Also RussianBeer sarcasm is for the Random forums - not in the Help forums were people have some good questions like tralfazz.

Cheers!  
Kirupa 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 14, 2003, 2:48pm UTC](https://forum.kirupa.com/t/loading-mp3s-dynamically/13504/6 "2003-02-14T14:48:54Z")

</div>

i never had a liking for russians…they’re all alcoholics.
