This one has me scrtaching my head.

All I want to do is to display a swf file and then swap to another when a button is pressed.

The following code displays the first annimation correctly but nothing happens when the button is pressed.

This should be so simple , any help is appreciated.


<html>
<meta http-equiv="X-UA-Compatible" content="IE=9" />

<script type="text/javascript">

function Changeanimation(){
document.getElementById("annimate").src="video2.swf";
document.getElementById("annimate").Play();
}
</script>

<embed id="annimate" name="annimate" src="video1.swf" style="width: 514px; height: 362px" / ><br>
<input type="button" value="Change Picture" onClick="Changeanimation();">
</html>