第一次用flex开发,用flex + spring 的架构,报 Error #2032 浏览器 firebug报:
"NetworkError: 404 Not Found - http://localhost:8080/test/flexweb/base/textLayout_1.1.0.604.swf"
"NetworkError: 404 Not Found - http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/textLayout_1.1.0.604.swf"
因为是在mac下开发以为是mac配置问题,但是找了半天裁发现这个地址的文件不存在。修改了flex的配置,位置在:~/.myeclipse/flex4Sdk/frameworks/flex-config.xml.修改:
<runtime-shared-library-path>
<path-element>libs/textLayout.swc</path-element>
<rsl-url>http://fpdownload.adobe.com/pub/swz/tlf/1.1.0.604/textLayout_1.1.0.604.swz</rsl-url>
<policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
<rsl-url>http://www.riafan.com/swz/4.1/textLayout.swz</rsl-url>
<policy-file-url>http://www.riafan.com/crossdomain.xml</policy-file-url>
</runtime-shared-library-path>
把相关<runtime-shared-library-path>节点的内容都注释掉,替换成上面的配置。重新生成swf文件,正常显示。