[FMX] dynamic sound

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.

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’.

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 :frowning:

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

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”.