swfobject无法在Chrome中的https上运行

csu*_*suo 6 javascript flash https google-chrome swfobject

我试图通过以下javascript代码将swf文件嵌入页面(谷歌应用引擎页面):

        <script type="text/javascript">
        //This example uses dynamic publishing with swfObject. Login is handled in the swf

        //Note we are passing in attribute object with a 'name' property that is same value as the 'id'. This is REQUIRED for Chrome/Mozilla browsers           
        swfobject.embedSWF("loader.swf", "flashContent", "640", "480", "10.2", null, null, null, {name:"flashContent"});            

        //REST OF THE CODE
    </script>
Run Code Online (Sandbox Code Playgroud)

它在HTTP上正常工作,但内容不适用于HTTPS.我已经google了很多,但我没有找到解决方案.我需要使用HTTPS for Secure Canvas URL来创建facebook应用程序.正如您在下面的评论中所看到的,https适用于Safari,但不适用于Chrome.

任何想法将不胜感激.

Mik*_*gan 7

我可以看到,https://radmahdi.appspot.com/facebook/userstatusweb/index.html现在正在为您工作,一旦您将我从评论中建议的链接更改为从HTTP到HTTPS的swfobject :)

你可以做到

//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js

作为您的链接,在这种情况下,使用的协议将相对于加载的页面.哪个可能更整洁.

如果您对该解决方案感到满意,请将问题标记为已回答.