NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.
<script type="text/javascript"></head>
<!--</script>
var loaded=false;//-->
function playFlash(id)
{
var flashFile = eval("window.document."+id);
if (!loaded)
{
while (!loaded)
{
if (flashFile.PercentLoaded() == 100)
{
flashFile.Play();
loaded = true;
}
}
}
else
flashFile.Play();
}
function stopFlash(id)
{
var flashFile = eval("window.document."+id);
flashFile.StopPlay();
}
<noembed></embed>
You need Flash and Netscape for this demo
</noembed>
<input type="button" name="Button1" value="Start Flash" onclick="playFlash('example');" /></form>
<input type="button" name="Button2" value="Stop Flash" onclick="stopFlash('example');" />