# mp3 question

**URL:** <https://forum.kirupa.com/t/mp3-question/16893>\
**Category:** Uncategorized\
**Created:** [March 29, 2003, 5:47pm UTC](https://forum.kirupa.com/t/mp3-question/16893 "2003-03-29T17:47:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ave](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@ave](https://forum.kirupa.com/u/ave)\
**Post date:** [March 29, 2003, 5:47pm UTC](https://forum.kirupa.com/t/mp3-question/16893/1 "2003-03-29T17:47:26Z")

</div>

Ok im doing a rough draft of a site (very rough so excuse layout colors all still experimental etc)  
Main thing is though my mp3 player , it is aseperate movie which loads into the main one with this code.  
[AS]Mysound = new Sound();  
\_root.button1.onPress = function() {  
Mysound.loadSound(“I\_Used\_To\_Write\_Songs.mp3”, false);  
Mysound.start(0);  
};  
\_root.button2.onPress = function() {  
Mysound.loadSound(“Slavedriver.mp3”, false);  
Mysound.start(0);  
};  
\_root.button3.onPress = function() {  
Mysound.loadSound(“Time\_To\_Buy\_A\_Futon.mp3”, false);  
Mysound.start(0);  
};  
stop();[/AS]  
problem is it works fine when i test the main movie on my computer but when i post the site to my server  
[http://www.freewebs.com/faroutonline/tests/Rake.html](http://www.freewebs.com/faroutonline/tests/Rake.html)  
the buttons cease to work WHY???  
Please help someone

---

<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:** [March 29, 2003, 6:03pm UTC](https://forum.kirupa.com/t/mp3-question/16893/2 "2003-03-29T18:03:05Z")

</div>

Changing all of ‘\_root’ to ‘this’ might work??? 😉

---

<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:** [March 29, 2003, 6:34pm UTC](https://forum.kirupa.com/t/mp3-question/16893/3 "2003-03-29T18:34:28Z")

</div>

you did embed the mp3s into your MC (I dont know how you can possibly _not_ do this but…who knows?)

---

<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:** [March 29, 2003, 7:25pm UTC](https://forum.kirupa.com/t/mp3-question/16893/4 "2003-03-29T19:25:42Z")

</div>

cant believe i didnt change the \_root. path ok thanks man will try it properly!!

---

<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:** [March 29, 2003, 7:27pm UTC](https://forum.kirupa.com/t/mp3-question/16893/5 "2003-03-29T19:27:42Z")

</div>

:esmirk:

---

<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:** [March 29, 2003, 7:32pm UTC](https://forum.kirupa.com/t/mp3-question/16893/6 "2003-03-29T19:32:51Z")

</div>

Still doesnt work and i cant understand why??  
When i open the html page from the files on my computer its fine all works but when uploaded the buttons dont seem to work??  
I think it may be a loading problem!!  
how can i create a preloader to display for sound which is loaded dynamically…  
any ideas…
