JavaScript DHTML/HTML/Embed
<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>
"palette" Example
<html>
<body>
<embed id="myEmbed"
palette="foreground"
src="youtfile.swf"
quality="high"
pluginspage="http://www.macromedia.ru/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"
width="250"
height="230">
</embed>
<button onclick="function1();">Click Here</button>
<script language="JavaScript">
function function1() {
var m = document.all.myEmbed.palette;
alert("""+m+""");
}
</script>
</body>
</html>