首页 新闻 搜索 专区 学院

java flash 外网无法显示效果

0
悬赏园豆:100 [已关闭问题] 关闭于 2015-12-25 14:56
WEB配置:window7+ Tomcat7.0
服务器本地可以正常显示flash,就是外网无法显示,效果是FLASH一片空白
我对服务器不是太懂  希望遇到这样问题的朋友告诉下 ?
 
问题补充:

这是这是浏览器控制端查询的报错,说找不到资源

下面是调用flash文件的代码:

 <script type="text/javascript" src="history/history.js"></script>
        <!-- END Browser History required section -->  
            
        <script type="text/javascript" src="swfobject.js"></script>
        <script type="text/javascript">
            // For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection.
            var swfVersionStr = "11.1.0";
            // To use express install, set to playerProductInstall.swf, otherwise the empty string.
            var xiSwfUrlStr = "playerProductInstall.swf";
            var flashvars = {};
            var params = {};
            params.quality = "high";
            params.bgcolor = "#ffffff";
            params.allowscriptaccess = "sameDomain";
            params.allowfullscreen = "true";
            var attributes = {};
            attributes.id = "StuduyBankMsg";
            attributes.name = "StuduyBankMsg";
            attributes.align = "middle";
            swfobject.embedSWF(
                "StuduyBankMsg.swf", "flashContent",
                "100%", "100%",
                swfVersionStr, xiSwfUrlStr,
                flashvars, params, attributes);
            // JavaScript enabled so display the flashContent div in case it is not replaced with a swf object.
            swfobject.createCSS("#flashContent", "display:block;text-align:left;");
        </script>
    </head>
    <body>
        <!-- SWFObject's dynamic embed method replaces this alternative HTML content with Flash content when enough
             JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show
             when JavaScript is disabled.
        -->
        <div id="flashContent">
            <p>
                To view this page ensure that Adobe Flash Player version
                11.1.0 or greater is installed.
            </p>
            <script type="text/javascript">
                var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
                document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"
                                + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );
            </script>
        </div>
        
        <noscript>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="StuduyBankMsg">
                <param name="movie" value="StuduyBankMsg.swf" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="#ffffff" />
                <param name="allowScriptAccess" value="sameDomain" />
                <param name="allowFullScreen" value="true" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="StuduyBankMsg.swf" width="100%" height="100%">
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <param name="allowFullScreen" value="true" />
                <!--<![endif]-->
                <!--[if gte IE 6]>-->
                    <p>
                        Either scripts and active content are not permitted to run or Adobe Flash Player version
                        11.1.0 or greater is not installed.
                    </p>
                <!--<![endif]-->
                    <a href="http://www.adobe.com/go/getflashplayer">
                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
                    </a>
                <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
            </object>
        </noscript>     
   </body>

 

让代码飞的主页 让代码飞 | 初学一级 | 园豆:112
提问于:2015-06-03 13:21
< >
分享
所有回答(2)
0

FLASH一片空白指的是FLASH根本就控件都出不来还是FLASH的内容空白? 说明白点。

请叫我头头哥 | 园豆:9382 (大侠五级) | 2015-06-03 13:48

是项目中用flash写的效果出不来 ,第二个图是正常情况,但是是内网

支持(0) 反对(0) 让代码飞 | 园豆:112 (初学一级) | 2015-06-03 14:13

@让代码飞: 服务器有安装flash吗?

支持(0) 反对(0) 请叫我头头哥 | 园豆:9382 (大侠五级) | 2015-06-03 16:07

@请叫我头头哥: 服务器上都是些flash文件

没有安装flash,在浏览器里就可以加载falsh文件啊

支持(0) 反对(0) 让代码飞 | 园豆:112 (初学一级) | 2015-06-03 16:14

@让代码飞: 你在服务器也装一个flash再试试

支持(0) 反对(0) 请叫我头头哥 | 园豆:9382 (大侠五级) | 2015-06-04 00:00

@请叫我头头哥: 试了,还是一样

支持(0) 反对(0) 让代码飞 | 园豆:112 (初学一级) | 2015-06-04 13:04
0

谢谢朋友们的关注,经过长时间的研究,最后发现是公司带宽对流量的限制,导致文件无法全部加载出来,通过提高公司带宽,此问题已解决

让代码飞 | 园豆:112 (初学一级) | 2015-06-16 09:31
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册