如题。

解决方案 »

  1.   

    Flash和js都是可以交互的,参见
    http://stackoverflow.com/questions/706753/stop-music-from-in-flash-from-javascript-event
    http://www.adobe.com/support/flash/publishexport/scriptingwithflash/
      

  2.   

    首先获取Flash对象的句柄,然后调用Flash的方法关闭播放器。
      

  3.   

    Flash AS:
    import flash.external.*;
    var _method : String = "stop"; //JS函数名
    var method : Function = stop;  //AS函数名
    ExternalInterface.addCallback(_method, this, method);//函数注册
    function stop(){
         ns.pause(true);//ns为FLV流对象(Object)
    }
    HTML JS:
    <object name="player" ................>
    <embed  name="player" ................>
    <input type=button value="停止" onclick="flvStop()"><script>
    function flvStop(){
        var Handle = document["player"]||window["player"];
        Handle.stop();
    }
    </script>
      

  4.   

    object 设置id ,然后清空
    document.getElementById("objectid").outerHTML="";