Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex Flex应用程序加载在ie/chrome中,但不加载在firefox中(托管在Azure上)_Apache Flex_Azure_Flash_Loading - Fatal编程技术网

Apache flex Flex应用程序加载在ie/chrome中,但不加载在firefox中(托管在Azure上)

Apache flex Flex应用程序加载在ie/chrome中,但不加载在firefox中(托管在Azure上),apache-flex,azure,flash,loading,Apache Flex,Azure,Flash,Loading,我看到的是浏览器加载html并显示一个空白的白色页面。如果我将swfobject背景色更改为黑色,则会看到黑色的方形。对于更大的swf,我看到一个进度条,进度条前进到100%,然后停止 我把它归结为一个简单的hello world应用程序,但它对我来说仍然失败。只有当SWF文件由Azure上的托管web服务器实例提供服务时,它才会失败。奇怪的是,当从文件系统直接将html加载到浏览器中时,它可以正常工作——只是当托管在Azure上时就不行了。它在运行模拟器时也会失败。我只是试着将文件放入blob

我看到的是浏览器加载html并显示一个空白的白色页面。如果我将swfobject背景色更改为黑色,则会看到黑色的方形。对于更大的swf,我看到一个进度条,进度条前进到100%,然后停止

我把它归结为一个简单的hello world应用程序,但它对我来说仍然失败。只有当SWF文件由Azure上的托管web服务器实例提供服务时,它才会失败。奇怪的是,当从文件系统直接将html加载到浏览器中时,它可以正常工作——只是当托管在Azure上时就不行了。它在运行模拟器时也会失败。我只是试着将文件放入blob存储中,这在所有浏览器中都能很好地工作。我没有在其他主机上尝试该文件

这里是html-非常简单和通用。全部由flash builder生成。忽略它名为clientpreload.swf的事实-我现在已经删除了所有功能,所以它只是舞台上的一个标签

至于Azure,它托管在SP2上,我没有对正在运行的IE做任何更改

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- saved from url=(0014)about:internet -->
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 
        <!-- 
        Smart developers always View Source. 

        This application was built using Adobe Flex, an open source framework
        for building rich Internet applications that get delivered via the
        Flash Player or to desktops via Adobe AIR. 

        Learn more about Flex at http://flex.org 
        // -->
        <head>
            <title></title>
            <meta name="google" value="notranslate" />         
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <!-- Include CSS to eliminate any default margins/padding and set the height of the html element and 
                 the body element to 100%, because Firefox, or any Gecko based browser, interprets percentage as 
                 the percentage of the height of its parent container, which has to be set explicitly.  Fix for
                 Firefox 3.6 focus border issues.  Initially, don't display flashContent div so it won't show 
                 if JavaScript disabled.
            -->
            <style type="text/css" media="screen"> 
                html, body  { height:100%; }
                body { margin:0; padding:0; overflow:auto; text-align:center; 
                       background-color: #ffffff; }   
                object:focus { outline:none; }
                #flashContent { display:none; }
            </style>

            <!-- Enable Browser History by replacing useBrowserHistory tokens with two hyphens -->
            <!-- BEGIN Browser History required section -->
            <link rel="stylesheet" type="text/css" href="history/history.css" />
            <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 = "ClientPreloader";
                attributes.name = "ClientPreloader";
                attributes.align = "middle";
                swfobject.embedSWF(
                    "ClientPreloader.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="ClientPreloader">
                    <param name="movie" value="ClientPreloader.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="ClientPreloader.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>
    </html>

html,正文{高度:100%;}
正文{边距:0;填充:0;溢出:自动;文本对齐:居中;
背景色:#ffffff;}
对象:焦点{大纲:无;}
#flashContent{显示:无;}
//对于版本检测,设置为所需的Flash Player最低版本,或0(或0.0.0)表示无版本检测。
var swfVersionStr=“11.1.0”;
//要使用快速安装,请设置为playerProductInstall.swf,否则将显示空字符串。
var xiswfullstr=“playerProductInstall.swf”;
var flashvars={};
var params={};
params.quality=“高”;
params.bgcolor=“#ffffff”;
params.allowscriptaccess=“sameDomain”;
params.allowfullscreen=“true”;
var属性={};
attributes.id=“clientpreload”;
attributes.name=“clientpreload”;
attributes.align=“middle”;
swfobject.embeddeswf(
“clientpreload.swf”、“flashContent”,
"100%", "100%", 
swfVersionStr、Xiswfullstr、,
flashvars、参数、属性);
//启用JavaScript,以便在未替换为swf对象时显示flashContent div。
createCSS(“#flashContent”,“显示:块;文本对齐:左;”);

要查看此页面,请确保Adobe Flash Player版本
安装了11.1.0或更高版本。

var pageHost=((document.location.protocol==“https:”)?“https:/”:“http:/”); 文件。填写(“”); 不允许运行脚本和活动内容,也不允许运行Adobe Flash Player版本 未安装11.1.0或更高版本。


这个问题的真正答案似乎是“不要那样做”。我很失望没有看到任何回应。我对Azure的科学研究方法最终让我心痛。我试图一次使用一个功能(托管IE,然后是存储等)。让它发挥作用的关键是什么都做。你需要拥抱一切。假定托管的IIS中存在与SWF文件相关的明显缺陷。但是,如果您完全按照建议进行操作——将大文件放入存储等,那么一切都会顺利进行(甚至更快)。

在Flex 4及更高版本中,默认情况下会编译SWF以使用RSL。它将Flex框架类从应用程序SWF中删除。Flash Player将下载/缓存framekwork RSL。我会先解决这方面的问题。您可以编译带有RSL的swf(它将是一个更大的swf,但加载过程将有更少的运动部件)。我编译了这个,包括和不包括所有RSL。我还使用FlashDevelop进行了编译。所有文件都存在于目录中。到目前为止,它在IE和Chrome中工作。我确信这是某种IIS设置,emulator和web实例在默认情况下共享。我一直在搜索web,最终找到了这篇有用的文章。事实证明这是一个FluorineFX设置,与Azure无关。默认配置有FlouorineFX压缩响应,似乎与Firefox不兼容。加入'。