// do Animator initialization first super.init(); // look up the name of a sound, and then // load and play it (just once), in a separate thread. String soundname = this.getParameter("sound"); new SoundPlayer(this, soundname);