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>
var loaded=false;//-->
function playFlash(id)
{
var flashFile = eval("window.document.all."+id);
if (!loaded)
{
while (!loaded)
{
if (flashFile.PercentLoaded() == 100)
{
flashFile.Play();
loaded = true;
}
}
}
else
flashFile.Play();
}
function stopFlash(id)
{
var flashFile = eval("window.document.all."+id);
flashFile.StopPlay();
}
<param name="movie" value="http://www.htmlref.com/flash/example.swf" /></object>
<param name="quality" value="high" />
<param name="swliveconnect" value="true" />
<b>Hello World for you non-ActiveX users!</b>
<input type="button" name="Button1" value="Start Flash" onclick="playFlash('example');" /></form>
<input type="button" name="Button2" value="Stop Flash" onclick="stopFlash('example');" />