@Override
	public void run()
	{
		playing = true;
		orderedStopped = false;
		try
		{
			if ((clip != null) && (applet instanceof Applet))
			{
				if (url == null)
					clip = ((Applet) applet).getAudioClip(((Applet) applet).getCodeBase(), key);
				else
					clip = ((Applet) applet).getAudioClip(new URL(url + key));
			}
		}
		catch (final MalformedURLException m)
		{
			clip = null;
			playing = false;
			return;
		}
		if (clip != null)
		{
			// dunno how to set volume, but that should go here.
			while ((!orderedStopped) && (iterations < repeats))
			{
				iterations++;
				clip.play();
			}
		}
		playing = false;
	}