# \[FMX\] dynamic sound

**URL:** https://forum.kirupa.com/t/fmx-dynamic-sound/35589
**Category:** flash
**Created:** [November 15, 2003, 7:37pm UTC](https://forum.kirupa.com/t/fmx-dynamic-sound/35589 "2003-11-15T19:37:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Maizoon](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@Maizoon](https://forum.kirupa.com/u/Maizoon)
#### Post date: [November 15, 2003, 7:37pm UTC](https://forum.kirupa.com/t/fmx-dynamic-sound/35589/1 "2003-11-15T19:37:11Z")

</div>

I know this has been addressed before and I’ve already searched the forums for the answer but none of the previous posts on this matter have an answer.

I have this script in the first frame of the first scene of my movie

[AS]  
myMusic = new Sound(loopHolder);  
myMusic.loadSound(“sound/Beats.mp3”);  
myMusic.start(0,999);  
[/AS]

which works fine when I test the movie locally, but when I move it to the server I get nothing. I tried using a .wav and a .aiff and still get nothing. Does anyone out there know why this is? Is it a server issue…maybe something to do with mime types? I’m at a loss.

---

<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: [November 15, 2003, 8:38pm UTC](https://forum.kirupa.com/t/fmx-dynamic-sound/35589/2 "2003-11-15T20:38:56Z")

</div>

Are you sure that the path to the mp3 file is correct online ? So in the folder in which your swf is in, there has to be another folder called ‘sound’, and in that folder there has to be the mp3 file ‘Beats’.

---

<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: [November 16, 2003, 1:47am UTC](https://forum.kirupa.com/t/fmx-dynamic-sound/35589/3 "2003-11-16T01:47:33Z")

</div>

The path is correct. The odd thing is…I have text files that are also loaded dynamically. When I first uploaded the files I forgot the text files (in a folder named /text). When I checked my movies online, I noticed that in the error logs for the server it was trying to access /text/text0.txt and whatnot but told me that there was no such file…but its not doing that in this case so I know that flash found the mp3 or it would have logged it. I’m at a total loss and apparently so are alot of people as none of the other posts on this matter were resolved. Should I just give up and put the mp3 into my movie, almost doubling it in size ☹

---

<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: [November 16, 2003, 3:24am UTC](https://forum.kirupa.com/t/fmx-dynamic-sound/35589/4 "2003-11-16T03:24:25Z")

</div>

did you try using .attachsound instead of .loadsound? That’s what i do and it works so far.

---

<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: [November 16, 2003, 2:17pm UTC](https://forum.kirupa.com/t/fmx-dynamic-sound/35589/5 "2003-11-16T14:17:17Z")

</div>

If your file is at the correct path, it should work … you can try using an absolute path, so no “sound/Beats.mp3”, but “[http://www.server.com/sound/Beats.mp3](http://www.server.com/sound/Beats.mp3)”.
