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文件代码,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。