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.

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

<script type="text/javascript">

function Changeanimation(){

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