I’m a little panicky right now and I’m hoping this is fixable. I’ve been working on a project for a while now, and I’ve just recently updated the game to where the music is played through a channel (instead of simply embedding the music and playing it). This is the code setup:
public static var soundChannel:SoundChannel = new SoundChannel;
public static var channel:SoundChannel = new SoundChannel;
private var musicReq:URLRequest = new URLRequest("../lib/battleMusic.mp3");
public static var musicSound:Sound = new Sound;
public function Sources()
{
musicSound.load(musicReq);
}
I did this because obviously running through a channel gives me more control over the music, plus loading the URL will not increase the file size nearly as much as embedding did.
The game and music run fine on my computer, but when I upload it to Newgrounds (in my Project folder - not the public portal), the music does not play.