通过FLASH控制层的隐藏flash里做个按钮 在它上面加上动作
 on(release)
  {
      fscommand("action","hidden");
}用JS脚本接收参数//其中flashId是flash Object的ID
<script>
function flashId_DoFSCommand(command, args)
{
      if(command=='action' && args=='hidden')
           document.all.divId.style.display='none'
}
</script>

解决方案 »

  1.   

    直接用JS实现<body style="margin:0">
    <div  style="cursor: hand; position:absolute; left:10px; top:10px; width:200px; height:115px; z-index:-1; visibility:  visible;">  <!--1.设置FLASH为底层-->
         <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="200" height="115" id="bao">
        <param name="movie" value="http://www.csdn.net/adv/468x60.swf">
      <param name="quality" value="high">
      <embed src="http://www.csdn.net/adv/468x60.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="115"></embed> 
      <param name="wmode" value="transparent">  <!--2.必须把FLASH设置为透明-->
    </object> </div>  
    <div id="huiLayer"  style="cursor: hand; position:absolute; left:10px; top:10px; width:200px; height:115px; z-index:1; visibility:  visible;"><br><br><br><input type="button" onclick="closeFlash()" value="Close"></div>  
    <script>
    function closeFlash()
    {
    if(document.getElementById("bao"))bao.outerHTML=""
    }
    </script>
    <br><br><br><br><br><br>