home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boot Disc 9
/
boot-disc-1997-05.iso
/
GroovyBox
/
source.txt
< prev
next >
Wrap
Text File
|
1997-03-13
|
881b
|
31 lines
public boolean mouseEnter(Message msg, Event evt, int x, int y)
{
Applet ourApplet = getApplet();
AudioClip clip;
String clipFilename = null;
// If the mouse is entering any of our Image Labels, we play
// a sound that has nothing to do with the image.
// Confusion is Entertainment!
if (msg.target == gui.alien)
clipFilename = "mix.au";
else if (msg.target == gui.thatgirl)
clipFilename = "gEEk.au";
else if (msg.target == gui.disc)
clipFilename = "powerchord.au";
else if (msg.target == gui.mrbrad)
clipFilename = "hahaha.au";
else if (msg.target == gui.baby)
clipFilename = "picking.au";
else if (msg.target == gui.bootnet)
clipFilename = "whatEVer.au";
if (clipFilename != null)
{
clip = ourApplet.getAudioClip(ourApplet.getDocumentBase(), clipFilename);
clip.play();
}
return super.mouseEnter(msg, evt, x, y);
}