but i would like to get a music file to play while the program is running..

(program would be a sort of easy RPG where you need to cross a maze)

any idea if this is possible and how this could be implemented?

every bit of help is appreciated. ^^

05-04-2011, 04:47 PM

JosAH

Quote:

Originally Posted by liluma

don't know if this even is possible...

but i would like to get a music file to play while the program is running..

(program would be a sort of easy RPG where you need to cross a maze)

any idea if this is possible and how this could be implemented?

every bit of help is appreciated. ^^

Have a look at the static method Applet.getAudioClip( ... ) method; it loads an AudioClip which you can play. imho, that method doesn't belong there, it should be a static method of the AudioClip class (if it were a class, it's an interface) itself because it has nothing to do with Applets ...