I am trying to develop a way to change a flash file displayed on the screen to another file by clicking a button. I have been able to do this with jpg images, but I can't get it to work with flash files. Can anyone help? I would greatly appreciate it. Below are two html's: the first one changes jpg images and it works, the second one I constructed to be similar to do the same with flash files but it does not work.
//Html 1. This changes Image 1 to Image 2 on click. It works
function changeSrc() { document.getElementById("myImage").src="Image 2.jpg"; }//Html 2. This is intended to change Flash 1 to Flash 2 on click. It does not work
function changeSrc() { document.getElementById("myImage").src="Flash 2.swf"; }