js调用swf文件代码

<script type="text/javascript" language="javascript" src="Scripts/swfobject.js"></script>
<script language="javascript">
    function load(){
        var swfVersionStr = "10.0.0";
        var params = {};
        params.quality = "high";        
        params.allowfullscreen = "false";
        params.allowscriptaccess = "always";    
        //params.wmode = "transparent";
        swfobject.embedSWF("flash/MainPage.swf", "FlashID", "597", "416", swfVersionStr,params);
    }
    //调用flash中的方法,"swfId"为html页中swf的id
    function setValue(o) {
         
        thisMovie("FlashID").getIds(o);
    }
     
    //搭建js与flash互通的环境
    function thisMovie(movieName) {
        if (navigator.appName.indexOf("Microsoft") != -1) {
             
         return window[movieName];
        } else {
             
         return document[movieName];
        }
    }
</script>

  

js调用swf文件代码,布布扣,bubuko.com

js调用swf文件代码

上一篇:jquery ajax 总是还未等到success回调就刷掉了,就进入了onError函数的错误案例分析


下一篇:高负载、高并发网站架构知识汇总-大流量网站架构的几点认识