my audioclip won't work

M

MrThis

My audio clip program (below), won't work. What am I doing wrong?
thanks


import java.awt.*;
import java.applet.*;
import java.net.URL;


/*
<applet code = "Playit" width=200 height=200>
<applet>
*/

public class Playit extends Applet{
public void init() {


AudioClip sound = getAudioClip(getDocumentBase(), "lightsout.wav");
sound.play();


}

}
 
A

Andrew Thompson

My audio clip program (below), won't work.

Maybe it is just lazy. HAve you tried flogging it? [ ;-) ]
..What am I doing wrong?

Look at the console in the browser, that often speaks volumes.
And supply an URL to your (broken) web page/applet as it is.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top