简体   繁体   English

从Flash Builder 4.6而非4.0编译时,SWF不是可加载模块

[英]SWF is not a loadable module when compiling from flash builder 4.6 but not 4.0

Having a very strange issue on an inherited project. 在继承的项目上有一个非常奇怪的问题。 The developer who built the project (using fb 4.0 and flex 3.0.0.477) is able to compile it and the application works just fine, both locally and on the server. 使用fb 4.0和flex 3.0.0.477构建项目的开发人员能够对其进行编译,并且该应用程序在本地和服务器上都可以正常运行。 However, if I take the identical code and compile it using fb 4.6 and the same flex sdk, the application works locally, but starts failing to load modules on the server, giving a "SWF is not a loadable module" error. 但是,如果我使用相同的代码并使用fb 4.6和相同的flex sdk进行编译,则该应用程序将在本地运行,但是开始无法在服务器上加载模块,从而出现“ SWF并非可加载模块”错误。 There are no other errors from the debug sessions. 调试会话没有其他错误。

All crossdomain policy files appear to be in place. 所有跨域策略文件似乎都已就位。 The module even begins loading, but receives the error after 5 - 10% downloaded. 该模块甚至开始加载,但是下载5-10%后会收到错误。

I also tried setting the application domain using modLoader.applicationDomain = ApplicationDomain.currentDomain;, with no results. 我还尝试使用modLoader.applicationDomain = ApplicationDomain.currentDomain;设置应用程序域,但没有结果。

Thanks! 谢谢!

So after long hours of troubleshooting, it turns out that the main application widget was being loaded over https, while the modules were being referenced at http. 因此,经过长时间的故障排除,结果发现主要应用程序小部件是通过https加载的,而模块是通过http引用的。 I guess flash builder 4.6 enforces stricter security settings. 我猜想Flash Builder 4.6会执行更严格的安全设置。 I now reference both the widget and the modules at https, and the application is working again. 现在,我在https上同时引用了小部件和模块,并且该应用程序再次正常工作。

Thanks, Shaun, for the help! 谢谢Shaun的帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM