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();
}
}
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();
}
}