I’m using loadSound to load in external MP3 files and they load and sound great on the local machine but don’t work when I upload the files to the web. I’m pretty stumped. The MP3 files are only like 10k and 60k so it can’t be a size issue (I’m on a T1 line here at work too).
Here is the site:
http://www.littlefenris.com/v2/
Basically when you walk close to the fire you should hear the fire crackling and it will get louder as you get even closer. Everything works on my PC, just not online.
Any ideas what the issue could be?
Here’s the AS code for the fire:
var campFireSFX:Sound = new Sound();
//CAMPFIRE SOUND
_root.campFireSound_mc.onEnterFrame = function() {
fireXDist = Math.round(this._x-fenris_mc._x);
fireYDist = Math.round(this._y-fenris_mc._y);
campFireDistance = Math.round(Math.sqrt((fireXDist*fireXDist)+(fireYDist*fireYDist)));
if (campFireDistance<200) {
if (breakIt != true) {
campFireSFX.start(0, 9999);
breakIt = true;
}
} else {
breakIt = false;
campFireSFX.stop();
}
campFireSFX.setVolume((maxVolume-campFireDistance)/2);
};
campFireSFX.loadSound("/sounds/319524_CampFire.mp3");