Flex 远程加载crossdomain.xml 解决

局域网部署Flex项目的时候加载不出来,分析了一下http发现在请求连接“http://fpdownload.adobe.com/pub/swz/crossdomain.xml”,这里出了问题,跨域的策略文件是从adobe远程请求过来的,于是猜想是否能从本地加载来解决这个问题呢,当然是可以,可以通过修改安装目录下“AdobeAdobe Flash Builder 4.7 (64 Bit)sdks4.6.0frameworks” flex-config.xml文件中的跨域站点来解决该问题。

<runtime-shared-library-path>
        <path-element>libs/framework.swc</path-element>
        <rsl-url>http://localhost/flex/4.6.0.23201/framework_4.6.0.23201.swz</rsl-url>
        <policy-file-url>http://localhost/crossdomain.xml</policy-file-url>
        <rsl-url>framework_4.6.0.23201.swz</rsl-url>
        <policy-file-url></policy-file-url>
    </runtime-shared-library-path>
原文地址:https://www.cnblogs.com/myssh/p/4091963.html