guestUser1234
Technical User
I'm trying to get a sound file to play in my applet. It works great, but when i upload it to the server, the sound files won't play. I've looked everywhere for the answer. Am i supposed to load the sound files with the html?
This is what i've tried that does NOT work:
win=Applet.newAudioClip(new URL(getCodeBase(),"oops.wav");
win.play();
this also does not work:
wrong=this.getAudioClip(new URL(getCodeBase(),"splat.wav");
wrong.play();
I'm confused.
This is what i've tried that does NOT work:
win=Applet.newAudioClip(new URL(getCodeBase(),"oops.wav");
win.play();
this also does not work:
wrong=this.getAudioClip(new URL(getCodeBase(),"splat.wav");
wrong.play();
I'm confused.