I have 2 Java applets (games <g>) I have developed.
The applet has several class files, and loads images and sounds
Sound code looks like this :
// many times, different variations
excellentSound = getAudioClip( getDocumentBase(),
"sounds/excellent.au" ) ;
// image code, different variations
xhairImage = getImage(getDocumentBase (), "images/xhair.gif") ;
Now I wanna put the applet, images and support files on 1 web server (domain) and the HTML containing it on another (domain).
I tried putting CODEBASE= in the HTML. This causes the applet to load from the new place, but as soon as it runs, I get a security exception in both IE and NS
1. What should I put in the HTML file
2. What code changes do I need to make in the applet