<html> <body> <embed id="myEmbed" src="yourswf.swf" width="150" height="150"></embed> <script language="JavaScript"> function function1() { document.all.myEmbed.hidden = true; } </script> <input type="Button" value='Make it hidden' onClick="function1();"> </body> </html>